<?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>Re: A many to one relationship might exist between two tables in the form</title><link>https://www.infopathdev.com:443/forums/thread/25871.aspx</link><pubDate>Thu, 24 Jan 2008 01:12:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25871</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25871.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25871</wfw:commentRss><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;Check out the following link: &lt;a href="http://blogs.msdn.com/infopath/archive/2006/08/29/730062.aspx"&gt;http://blogs.msdn.com/infopath/archive/2006/08/29/730062.aspx&lt;/a&gt;. In general, our Database Accelerator Web Service will simplify your form significantly since it will abstract the XML to SQL DB mapping and allow you to define the mapping separately without having to worry about redesigning your form every time the DB changes. Let me know if you want to talk again or if I can show you another demo. &lt;/p&gt;</description></item><item><title>Re: A many to one relationship might exist between two tables in the form</title><link>https://www.infopathdev.com:443/forums/thread/25865.aspx</link><pubDate>Wed, 23 Jan 2008 17:52:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25865</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25865.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25865</wfw:commentRss><description>&lt;p&gt;LaborSummary&lt;/p&gt;
&lt;p&gt;Autonumber(Primary Key)&lt;/p&gt;
&lt;p&gt;CA&lt;/p&gt;
&lt;p&gt;xxx&lt;/p&gt;
&lt;p&gt;xxx &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LaborSummaryCommentsLabor&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Autonumber(Primary Key)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; CA_L&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Comments&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a CA to CA_L relationship setup between the two tables...which will&amp;nbsp;&amp;nbsp;be a &amp;nbsp;one to many. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: A many to one relationship might exist between two tables in the form</title><link>https://www.infopathdev.com:443/forums/thread/25864.aspx</link><pubDate>Wed, 23 Jan 2008 17:38:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25864</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25864</wfw:commentRss><description>&lt;p&gt;This would be refering to the relationships between the tables.&lt;/p&gt;
&lt;p&gt;Are you using Primary Keys for each table?&lt;/p&gt;
&lt;p&gt;What is your layout?&lt;/p&gt;</description></item><item><title>Re: A many to one relationship might exist between two tables in the form</title><link>https://www.infopathdev.com:443/forums/thread/25862.aspx</link><pubDate>Wed, 23 Jan 2008 17:20:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25862</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25862</wfw:commentRss><description>&lt;p&gt;I setup my tables and relationships like stated above but get the following error when I create the Data Connection:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;A many to one relationship might exist between two tables in the form&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;</description></item><item><title>Re: 1QNAN Error</title><link>https://www.infopathdev.com:443/forums/thread/25856.aspx</link><pubDate>Wed, 23 Jan 2008 16:09:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25856</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25856</wfw:commentRss><description>&lt;p&gt;My field in Access is setup as a&amp;nbsp;type &amp;quot;double&amp;quot; with 4 decimal places.&amp;nbsp; When I perform a &amp;quot;sum&amp;quot; function on that column I get the 1QNAN error anytime I have a number after the decimal point&amp;nbsp;such as 0.0025.&amp;nbsp;&amp;nbsp;The sum works fine if all the columns&amp;nbsp;something&amp;nbsp;like &amp;nbsp;0.0000 or 1.2500.&amp;nbsp;&amp;nbsp; The total column is setup a decimal.&amp;nbsp; Does anyone know why?&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25831.aspx</link><pubDate>Tue, 22 Jan 2008 18:36:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25831</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25831</wfw:commentRss><description>&lt;p&gt;I went through this in another thread recently.&lt;/p&gt;
&lt;p&gt;First you need some data in Access before running the data connection wizard.&amp;nbsp; It also should be formatted in Access so it is not rounding but displaying the decimal places.&amp;nbsp; Then it should be a float field in InfoPath and you can set control format to the correct number of decimal places.&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25830.aspx</link><pubDate>Tue, 22 Jan 2008 18:33:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25830</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25830</wfw:commentRss><description>&lt;p&gt;When a new record is added on the main table, InfoPath will default a new record for each child.&amp;nbsp; The user can complete these, ignore these, or add more than one.&amp;nbsp; That is why the records need an ID as well as a pointer to the parent, to enable multiple children. A new record would need the pointer set to submit properly but it would be blank initially. Child tables cannot be created on their own without&amp;nbsp;an associated parent.&lt;/p&gt;
&lt;p&gt;When a record is queried the related children will be returned as well.&lt;/p&gt;
&lt;p&gt;Update your table as I laid out and then create a new form and I think you will see as you experiment with it.&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25829.aspx</link><pubDate>Tue, 22 Jan 2008 18:33:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25829</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25829</wfw:commentRss><description>&lt;p&gt;I have a another quick question...I am summing a field set as Decimal&amp;nbsp;with 4 places such a 0.0000.&amp;nbsp; Some records have 0.0000 and others have numbers such as 812.1677.&amp;nbsp; I get 1#QNAN sometimes even though there are no blanks in the field.&amp;nbsp; Do you know why?&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25825.aspx</link><pubDate>Tue, 22 Jan 2008 18:25:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25825</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25825</wfw:commentRss><description>&lt;p&gt;So the child tables do not have to have a record associated with a record on the parent table to start?&amp;nbsp; I want a one to may relationship where there are no comments to start and users can add as many comments as they want to per Control Account. &lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25824.aspx</link><pubDate>Tue, 22 Jan 2008 18:15:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25824</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25824</wfw:commentRss><description>&lt;p&gt;That may be the issue.&lt;/p&gt;
&lt;p&gt;InfoPath typically wants a one to many relationship, multiple children per parent or at least the capability to handle this.&amp;nbsp; I would try adding a Primary key which is unique to each child and see if that works.&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25823.aspx</link><pubDate>Tue, 22 Jan 2008 18:09:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25823</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25823</wfw:commentRss><description>&lt;p&gt;This may be my problem...I am using the ID and MainID as the same key on the child table...for the table and for the link to the parent table. &lt;/p&gt;
&lt;p&gt;ID&amp;nbsp; Name&amp;nbsp; Decription&amp;nbsp;&amp;nbsp;&amp;nbsp; etc&lt;/p&gt;
&lt;p&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;/p&gt;
&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; Test2&amp;nbsp;&amp;nbsp;&amp;nbsp; Test Again&amp;nbsp; x&lt;/p&gt;
&lt;p&gt;Then child&lt;/p&gt;
&lt;p&gt;MainID&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Comment&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TestNote&amp;nbsp;&amp;nbsp; Testing is fun&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25821.aspx</link><pubDate>Tue, 22 Jan 2008 17:33:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25821</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25821</wfw:commentRss><description>&lt;p&gt;Typically you would configure each table with a primary key so that each record has a unique ID. Child tables would have an extra column/field which pointed to the parent record in the parent table.&lt;/p&gt;
&lt;p&gt;So main&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp; Name&amp;nbsp; Decription&amp;nbsp;&amp;nbsp;&amp;nbsp; etc&lt;/p&gt;
&lt;p&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;/p&gt;
&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; Test2&amp;nbsp;&amp;nbsp;&amp;nbsp; Test Again&amp;nbsp; x&lt;/p&gt;
&lt;p&gt;Then child&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp; MainID&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Comment&lt;/p&gt;
&lt;p&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TestNote&amp;nbsp;&amp;nbsp; Testing is fun&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You may already have this, I just wanted to be clear that your relationships are right.&amp;nbsp; Also it should ask you for this relationship in the wizard.&amp;nbsp; Are you supplying the ID numbers in the form?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25820.aspx</link><pubDate>Tue, 22 Jan 2008 17:26:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25820</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25820</wfw:commentRss><description>&lt;p&gt;I am using an autonum to create a key&amp;nbsp;on a new record for me on all tables. I have a autonum field records 1 to 3283 on all three tables.&amp;nbsp; My main table have all fields with data in them.&amp;nbsp; My two child tables have the same autonum field filled in 1 to 3283 and also a Control Account Number field. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;It looks like I did everything right.&amp;nbsp; Do the child tables need to have the same key(1-3283) as on the&amp;nbsp;parent table.&amp;nbsp; When they did not,&amp;nbsp;&amp;nbsp;they were&amp;nbsp;not editable on the form. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I will try creating a new form to see if I can get it to work. &lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25819.aspx</link><pubDate>Tue, 22 Jan 2008 16:59:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25819</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25819.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25819</wfw:commentRss><description>&lt;p&gt;Alright.&lt;/p&gt;
&lt;p&gt;First I would try adding a new view and drag your whole data node onto it&amp;nbsp;as a sectio with controls&amp;nbsp;so you can see everything.&lt;/p&gt;
&lt;p&gt;Preview and see if you can query and submit all three tables.&amp;nbsp; One thing do you have any data in your tables? Often I have an issue with the data connection if the table has no records (1 blank).&amp;nbsp; You might try putting some test data in the first row and then go through the data connection wizard if this has been the case.&lt;/p&gt;
&lt;p&gt;Lastly, create a new form from scratch real quick and do the default drag of the query fields and data fields and preview that and see if you get full functionality on all of your tables.&lt;/p&gt;</description></item><item><title>Re: SQL Database Question</title><link>https://www.infopathdev.com:443/forums/thread/25817.aspx</link><pubDate>Tue, 22 Jan 2008 16:51:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25817</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25817.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25817</wfw:commentRss><description>&lt;p&gt;I have done that,&amp;nbsp;my Data Connection looks like this...&lt;/p&gt;
&lt;p&gt;- &amp;nbsp;LaborSummay.dbo&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- LaborSummayCommentsLabor.dbo&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - LaborSummayCommentsNonLabor.dbo&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Autonumber is the primary key for all the tables and I have setup a relationship between the first table listed and the two below it.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>