<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath &amp; SQL</title><link>https://www.infopathdev.com:443/forums/thread/107001.aspx</link><pubDate>Fri, 10 Jun 2016 23:01:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107001</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107001</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi - we had a brief chat over email on this, but just to answer this question - if the form is a database bound form, you&amp;#39;ll have to write code for this to change the connection for the Main data source prior to submit.&lt;/p&gt;</description></item><item><title>InfoPath &amp; SQL</title><link>https://www.infopathdev.com:443/forums/thread/106898.aspx</link><pubDate>Mon, 06 Jun 2016 02:16:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106898</guid><dc:creator>cab411</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106898</wfw:commentRss><description>I have a database connection with 2 tables.  One I am querying to see if a record exist, then if the record does not exist I should add the data to table two. 

whenever I try to submit the data - I get an error massage which tells me it is trying to write to table one and not table two.  How can I make sure it is writing to table two. 

the ID Field is required for Table one but the ID field is not required for table two.  

What can I do to make sure I am writing to table two and not table one.

Thanks
Carol</description></item></channel></rss>