<?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: Retrieve data from one table, submit data to another table</title><link>https://www.infopathdev.com:443/forums/thread/65524.aspx</link><pubDate>Mon, 28 Mar 2011 21:22:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65524</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=65524</wfw:commentRss><description>&lt;p&gt;Since you are submitting your data to the &amp;quot;CYLINDER_MEASUREMENTS&amp;quot;&amp;nbsp;table, you need to have that be the table you use for your data connection.&lt;/p&gt;
&lt;p&gt;&amp;quot;CYLINDER_DATA&amp;quot; would be a secondary data connection in your form. Your drop down where the user selects the Cylinder Id would use the Cylinder Data data source to provide it&amp;#39;s values, most likely. You&amp;#39;d add rules to your Cylinder Id field to popluate other fields in your form based on the selected Cylinder Id. You&amp;#39;ll need to apply a filter to your secondary data source when you select the value you want in your main data source field -- where &amp;quot;Cylinder Id&amp;quot; in the secondary data source is equal to Cylinder Id in the main data source. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/infopath-help/filter-the-data-that-is-displayed-in-a-control-HA010024281.aspx" target="_blank"&gt;This&lt;/a&gt; Office Online article may help you some, too.&lt;/p&gt;</description></item><item><title>Retrieve data from one table, submit data to another table</title><link>https://www.infopathdev.com:443/forums/thread/65343.aspx</link><pubDate>Tue, 22 Mar 2011 13:44:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65343</guid><dc:creator>lespaul00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65343.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=65343</wfw:commentRss><description>Hello,

I&amp;#39;ve been struggling with getting a simple InfoPath 2007 form to work with a test MS Access 2007 database.  I feel the best way to explain what I am doing is by giving you an example.

Background of scenario:
Lets say I am a distributor of gas cylinders.  I have 100 different gas cylinders that I fill and send to customers.  When they are done with the gas, they return the cylinders and I fill them back up.  Each cylinder has specific data related to each: manufacturer, serial #, specific cylinder ID, and material of construction (carbon steel, stainless steel, etc).  I have this data in my MS Access database, in an individual table called &amp;quot;CYLINDER_DATA&amp;quot;.

Every time I refill a cylinder, I need to record the date and measure the pressure and temperature (among other things) of the gas in the cylinder.  This data (along with the specific &amp;quot;CYLINDER_DATA&amp;quot; at this date of measurement) must be added as a new record in a different table called &amp;quot;CYLINDER_MEASUREMENTS&amp;quot; in the same database.

What I would like to do:
So, I want to create an InfoPath form for operators to use whenever they need to perform measurements on a newly filled cylinder.  So, I created an InfoPath form, that starts with a drop-down list box control that is populated with the 100 different cylinder IDs.  A user would choose one of the &amp;quot;cylinder IDs&amp;quot; from the drop down list and then click &amp;quot;retrieve data&amp;quot;.  This would then populate the fields directly below: manufacturer, serial #, material of construction, etc from the &amp;quot;CYLINDER_DATA&amp;quot; table.

Below this section would be a section to &amp;quot;fill in&amp;quot; measurements to the &amp;quot;CYLINDER_MEASUREMENTS&amp;quot; table.  It would have blank fields for &amp;quot;pressure&amp;quot;, &amp;quot;temperature&amp;quot;, &amp;quot;date&amp;quot;, and other measurement fields.  Once filled in, the operator would hit &amp;quot;submit&amp;quot; and a new record in the &amp;quot;CYLINDER_MEASUREMENTS&amp;quot; table would be created.  This new record would included the everything populated on the InfoPath form (the cylinder specific data AND the measurements on the given date).

What I&amp;#39;ve tried doing:
I have my database set up in the two tables outlined above.  I created an InfoPath form with the &amp;quot;CYLINDER_DATA&amp;quot; as the Main Connection.  I am easily able to retrieve cylinder specific data from the CYLINDER_DATA table into my form by use of the queryfields and datafields.  However, I cannot seem to get the &amp;quot;submit&amp;quot; to go to the &amp;quot;CYLINDER_MEASUREMENTS&amp;quot; table.  The form seems to only want to submit to the &amp;quot;CYLINDER_DATA&amp;quot; table.

I also tried making the &amp;quot;CYLINDER_MEASUREMENTS&amp;quot; table the Main Connection, so I could submit to it.  But then, it seems that I cannot create a database query to &amp;quot;retrieve&amp;quot; data from the &amp;quot;CYLINDER_DATA&amp;quot; table.

Where to go from here:
I am looking to get any insight from you to see how I can configure this appropriately to get what I need.  I also do not want the user to be able to change the data in the &amp;quot;CYLINDER_DATA&amp;quot; table, so I would likely have those fields &amp;quot;read-only&amp;quot;.  Any information/support is appreciated.

Thank you.</description></item></channel></rss>