<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Using one field to update another and submit to SQL</title><link>https://www.infopathdev.com:443/forums/thread/70596.aspx</link><pubDate>Mon, 26 Sep 2011 11:55:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70596</guid><dc:creator>Mnutty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=70596</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I can read and write to an sql database no problems.&lt;/p&gt;&lt;p&gt;In my form I pull back an id, name, price, date&amp;nbsp;and type from a db in a repeating section.&amp;nbsp;I want to then update the date and price for that one product, but in my section it puts every item as the same price as it only sees one id (the first one)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;strong&gt;What I want is:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Current information&lt;/p&gt;&lt;p&gt;&amp;nbsp;id = 1&lt;/p&gt;&lt;p&gt;name = blah&lt;/p&gt;&lt;p&gt;price = 12&lt;/p&gt;&lt;p&gt;date = 01/08/2011&lt;/p&gt;&lt;p&gt;New information&lt;/p&gt;&lt;p&gt;id = 1&lt;/p&gt;&lt;p&gt;date = 01/09/2011&lt;/p&gt;&lt;p&gt;price = 13&lt;/p&gt;&lt;p&gt;Current information&lt;/p&gt;&lt;p&gt; id = 2&lt;/p&gt;&lt;p&gt;name = blah blah&lt;/p&gt;&lt;p&gt;price = 12&lt;/p&gt;&lt;p&gt;date = 01/08/2011&lt;/p&gt;&lt;p&gt;New information&lt;/p&gt;&lt;p&gt;id = 2&lt;/p&gt;&lt;p&gt;date = 01/09/2011&lt;/p&gt;&lt;p&gt;price = 13&lt;/p&gt;&lt;p&gt;&lt;strong&gt;What I&amp;#39;m getting is&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;Current information&lt;/p&gt;&lt;p&gt; id = 1&lt;/p&gt;&lt;p&gt;name = blah&lt;/p&gt;&lt;p&gt;price = 12&lt;/p&gt;&lt;p&gt;date = 01/08/2011&lt;/p&gt;&lt;p&gt;New information&lt;/p&gt;&lt;p&gt;id = 1&lt;/p&gt;&lt;p&gt;date = 01/09/2011&lt;/p&gt;&lt;p&gt;price = 13&lt;/p&gt;&lt;p&gt;Current information&lt;/p&gt;&lt;p&gt; id = 2&lt;/p&gt;&lt;p&gt;name = blah blah&lt;/p&gt;&lt;p&gt;price = 12&lt;/p&gt;&lt;p&gt;date = 01/08/2011&lt;/p&gt;&lt;p&gt;New information&lt;/p&gt;&lt;p&gt;id = 1&lt;/p&gt;&lt;p&gt;date = 01/09/2011&lt;/p&gt;&lt;p&gt;price = 13&lt;/p&gt;&lt;p&gt;&amp;nbsp;How do I get around this?&lt;/p&gt;&lt;p&gt;Mike&lt;/p&gt;</description></item></channel></rss>