<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath form linked to access 2003 database</title><link>https://www.infopathdev.com:443/forums/thread/43048.aspx</link><pubDate>Wed, 17 Jun 2009 01:07:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43048</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43048.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=43048</wfw:commentRss><description>&lt;p&gt;Hi, Ralph:&lt;/p&gt;
&lt;p&gt;If I may expand on Patrick&amp;#39;s answer....&lt;/p&gt;
&lt;p&gt;You can add another data connection to your form that receives data, and you can select your Access database as the source. Perhaps it would be easiest if you created a View in your Access database that returns the max AssyNo and the max of the other field you want incremented. &lt;a href="http://www.databasedev.co.uk/access_max_function.html"&gt;Here&lt;/a&gt; is a blog post with more information on the max function in Access.&lt;/p&gt;
&lt;p&gt;Then, use rules for your Submit -- you can do that if you go to &lt;strong&gt;Tools / Submit Options&lt;/strong&gt;. Select to Submit via rules. Your first rule would be to query using your data connection to the view that returns the max AssyNo. Your second rule could be to set the form field value that you want populated with the AssyNo from your secondary data connection + 1. Then your third rule could be to actually submit the form. &lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>Re: Infopath form linked to access 2003 database</title><link>https://www.infopathdev.com:443/forums/thread/42439.aspx</link><pubDate>Wed, 03 Jun 2009 15:51:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42439</guid><dc:creator>rdodson4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=42439</wfw:commentRss><description>&lt;p&gt;Patrick,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am still having trouble with this. I have search the forum but wasn&amp;#39;t able to find what i was looking for. I have an existing access 2003 db and have my infopath 2003 form linked to the backend of my db. I also have secondary connections for receiving data from 2 other tables in the same db. From the main connection, I am trying to populate a field (AssyNo) to the last value in the db and have it displayed. I am VERY new to infopath so am not able to completely follow what you are recommending. I don&amp;#39;t understand your statement to load that ID into my form after submitting the first time and then submit again. I don&amp;#39;t understand what that means. Can you explain in more detail please. I have a beginning infopath 2003 book and am not able to find any information about this in that book.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can you help me?&lt;/p&gt;
&lt;p&gt;Thanks for any help you may provide.&lt;/p&gt;
&lt;p&gt;Ralph Dodson&lt;/p&gt;</description></item><item><title>Re: Infopath form linked to access 2003 database</title><link>https://www.infopathdev.com:443/forums/thread/42105.aspx</link><pubDate>Wed, 27 May 2009 05:34:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42105</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=42105</wfw:commentRss><description>&lt;p&gt;Hi Ralph,&lt;/p&gt;
&lt;p&gt;Well, both SQL and Access provide functionality to automatically increment&amp;nbsp;IDs. You just need to load that ID into your form after submitting the first time and then submit again. The first submit will set the row in the DB. Then, you&amp;#39;ll want to query the DB (create another data connection for that), get the value, and set that in the form before submitting again. &lt;/p&gt;
&lt;p&gt;This is one of the most common forum queries. I personally have seen no less than 20 threads devoted to this issue. Most people are trying to use SQL though. Please try to search using our Google search tool: &lt;a href="http://www.google.com/coop/cse?cx=003654972516704994317:4j0mji2l1rq"&gt;http://www.google.com/coop/cse?cx=003654972516704994317:4j0mji2l1rq&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Infopath form linked to access 2003 database</title><link>https://www.infopathdev.com:443/forums/thread/42081.aspx</link><pubDate>Tue, 26 May 2009 20:19:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42081</guid><dc:creator>rdodson4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42081.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=42081</wfw:commentRss><description>&lt;p&gt;I have an infopath 2003 form that I created and have linked to an access 2003 database. I have two fields (AssyID and AssyNo from the database. I want to have the AssyID field display that last ID number used and increment it by 1. I want the AssyNo field display that last AssyNo used and increment by 1.&amp;nbsp;I have googled and search this forum and have not been able to find an answer to this problem.&lt;/p&gt;
&lt;p&gt;Can anyone help me.&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Ralph Dodson&lt;/p&gt;</description></item></channel></rss>