<?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: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96773.aspx</link><pubDate>Sat, 29 Mar 2014 00:15:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96773</guid><dc:creator>gnatzd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96773</wfw:commentRss><description>&lt;p&gt;Ok, I got the drop down list to appear nicely, but I am stumped again.&amp;nbsp; You said to add conditional formatting to the section to keep it from repeating with different values.&amp;nbsp; I wasn&amp;#39;t sure what to set in formating so I set do not allow users to insert or delete fields.&amp;nbsp; This didn&amp;#39;t work, obviously.&amp;nbsp; Also. i have played with putting differnt query fields into that spot, but everything I have tried has grabed one value for the field when the form loads and this value never changes no matter what value you pull up in the drop down.&amp;nbsp; I am attaching my latest effort.&amp;nbsp; Thanks.&lt;/p&gt;&lt;p&gt;Dan&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96771.aspx</link><pubDate>Fri, 28 Mar 2014 18:42:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96771</guid><dc:creator>gnatzd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96771</wfw:commentRss><description>&lt;p&gt;Ok, sorry I misunderstood.&amp;nbsp; I will rebuild the second form and add you other suggested changes and then&amp;nbsp;I will let you know where I am.&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks.&lt;/p&gt;&lt;p&gt;Dan&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96767.aspx</link><pubDate>Fri, 28 Mar 2014 18:26:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96767</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96767</wfw:commentRss><description>&lt;p&gt;I am still not being clear.&lt;/p&gt;
&lt;p&gt;What I am trying to tell you is you cannot &amp;quot;add&amp;quot; a submit connection to your Access database. You need to use the database template when you create your form.&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96765.aspx</link><pubDate>Fri, 28 Mar 2014 18:06:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96765</guid><dc:creator>gnatzd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96765</wfw:commentRss><description>&lt;p&gt;Sorry, &amp;nbsp;this is a work in progress and intially these two forms were two views of the same form each with its own submit botton.&amp;nbsp; I put them into seperate forms when I started looking into getting each view to submit only its own fields to the database and realized that was a difficult problem becuase you can only have one submit connection to Access.&amp;nbsp; I just haven&amp;#39;t added the submit connection for the second form.&amp;nbsp; There are still some fields I will add to the database to collect the information form the second form but some are there. So yes, it is intended to submit to the database.&amp;nbsp; Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Dan&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96764.aspx</link><pubDate>Fri, 28 Mar 2014 17:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96764</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96764</wfw:commentRss><description>&lt;p&gt;So - my question is - how do you expect the 2nd form to submit to the DB? It is not based off the DB, so there is no option to submit it....Your first form is based off the database. So it does submit to the database. I mean, you can add code to submit to a DB.... but I&amp;#39;m guessing that isn&amp;#39;t your intent.&lt;/p&gt;
&lt;p&gt;Conditional formatting is part of InfoPath. Click on the repeating section in the form and add a rule that is a formatting rule.&lt;/p&gt;
&lt;p&gt;DS is just shorthand for data source.&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96762.aspx</link><pubDate>Fri, 28 Mar 2014 17:17:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96762</guid><dc:creator>gnatzd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96762</wfw:commentRss><description>&lt;p&gt;Thanks Hillary,&lt;/p&gt;&lt;p&gt;I will try to explain what I want my for to do.&amp;nbsp; The database is comnected to two forms. The first form collects information from Prosthtics Service with information about an upcoming surgery.&amp;nbsp; This information will include information about a needed implant, a vendor, an estimate of what the implant will cost, and estimated date the item will be needed and a date of input.&amp;nbsp; That form is a Preauthorization request and the information is&amp;nbsp;sent to an Access database that assigns&amp;nbsp;a random unique PreAuthorizationID.&amp;nbsp; The second form,&amp;nbsp; the one I sent you, is for Contracting to fill out and sign to authorize the purchase.&amp;nbsp;In this form, the user will select the PreAuthorizationID from the database and, after section other fields from the first form will autopopulate on the form.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The form will collect and send back to the database all the fields that the Contracting Officer fills in so the datbase is contantly updated when requests are entered and when the requests are authorized.&lt;/p&gt;&lt;p&gt;The folowing items are enhancements I intend to add, but I wanted to get the drop down list and autopopulate working first:&lt;/p&gt;&lt;p&gt;Not to exceed amount is coming from the database and is input by Prosthetics.&amp;nbsp; In the final version of the form I will make this field Requested Not to Exceed amount.&amp;nbsp; Contracting will either be able to accept this amount ( by a checkbox) in which case the final not to exceed amount will be autopopulated below it, or change the amount (another check box) which allows the field to be filled in with an amount the Contracting Officer determines.&amp;nbsp;I will also do this with other fields such as need date. &amp;nbsp;If this enhancement isn&amp;#39;t possible in InfoPath please let me know.&lt;/p&gt;&lt;p&gt;I am attaching my other form. &lt;/p&gt;&lt;p&gt;By the way.&amp;nbsp; Is the conditional formatting you are referring to something I can do in InfoPath?&amp;nbsp;Where is that control? What does DS&amp;nbsp;refer to? &amp;nbsp;Sorrry for being such a newbie.&lt;/p&gt;&lt;p&gt;Thanks for your help. Please let me know if you need any additional information.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Dan&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96760.aspx</link><pubDate>Fri, 28 Mar 2014 16:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96760</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96760</wfw:commentRss><description>&lt;p&gt;Okay - so, first off, you will have to query the data source in order to have options in the drop down. Querying loads the data in the data source.&lt;/p&gt;
&lt;p&gt;It looks like you have 2 data connections to the same data source. You probably don&amp;#39;t need that, since you can&amp;#39;t filter your query prior to running it - that is, every time you query your Access DB, all items will be returned.&lt;/p&gt;
&lt;p&gt;So - I&amp;#39;m trying to understand what you are wanting to do in your form. It appears you have the secondary data source fields on the form in a number of places - are you just wanting to display data from your DB? If not, if you actually are wanting to save data the user enters in those controls, you would need to use main data source fields for controls in the form, or you could create your form off the database so it will query from and submit back to the DB.&lt;/p&gt;
&lt;p&gt;If you are just trying to display, you can prevent displaying those multiple values by adding conditional formatting to the repeating sections where PreauthorizationID in the 2ds = PreauthorizationID in the main DS.&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96754.aspx</link><pubDate>Fri, 28 Mar 2014 15:13:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96754</guid><dc:creator>gnatzd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96754</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary,&lt;/p&gt;&lt;p&gt;Attaching my form as you have requested.&amp;nbsp; Thanks,\.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dan &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96752.aspx</link><pubDate>Fri, 28 Mar 2014 15:00:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96752</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96752</wfw:commentRss><description>&lt;p&gt;Hey, Dan - any chance you could attach your form under the Options tab so I can get a better idea of what your issue is?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/96738.aspx</link><pubDate>Thu, 27 Mar 2014 23:18:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96738</guid><dc:creator>gnatzd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96738</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a similar problem but I have not 
been able to a solve it after reading this post.&amp;nbsp; I have an Access field (a ID number that users will look for)
 that I am trying to pull into my form to use as a drop down list.&amp;nbsp; Once
 this field has data selected I would like to automatically populate 
other fields from my database. &amp;nbsp; I solved the problem with the error 
coming that you discussed in this post early on.&amp;nbsp; I was able to get the 
selection list to show up when I checked &amp;quot;retrieve data when form is open&amp;quot;, but this also created 
multiple entries in a repeating table that gave the date of entry so I 
turned it off.&amp;nbsp; Now, I don&amp;#39;t see anything in my drop down box although 
it is apparently connected to my secondary data source.&amp;nbsp; Your help would
 be greatly appreciated.&amp;nbsp; Thanks. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;Dan</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/43152.aspx</link><pubDate>Thu, 18 Jun 2009 18:08:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43152</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=43152</wfw:commentRss><description>&lt;p&gt;You need to add a secondary data connection to your form. That connection needs to receive data.&lt;/p&gt;
&lt;p&gt;Do you know how to create a View in Access? You should create a View that uses the following query to always return the max assy number (this is written for SQL, so you may need to modify syntax for Access):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Select max(AssyNo) from TableName&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Your secondary data connection will connect to that view. You do not need to set it to automatically retrieve data on open.&lt;/p&gt;
&lt;p&gt;The first rule on the button should have an action to run a&amp;nbsp;query. Query the data connection you just set up to the view.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The second&amp;nbsp;rule on the button should use the action to set a field&amp;#39;s value. The field should be the AssyNo field in the data fields of the main data source of your form.&lt;/p&gt;
&lt;p&gt;The value should be the AssyNo field from the brand new data connection we just created plus 1.&lt;/p&gt;
&lt;p&gt;The third rule on your button should submit the form, so that the brand new assy no gets submitted to the database, so the numbers stay up to date.&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/43141.aspx</link><pubDate>Thu, 18 Jun 2009 17:00:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43141</guid><dc:creator>rdodson4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=43141</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hillary,&lt;/p&gt;
&lt;p&gt;I liked your suggestion about adding the button to get the next available number from the database. The field in Access uses the data type of Number - Long Integer. So, I created my&amp;nbsp;&amp;#39;Get AssyNo&amp;#39;&amp;#39; button and added a rule that says &amp;quot;max(@AssyNo)+1&amp;quot;. When I click the button, the word &amp;quot;NaN&amp;quot; appears in that field.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know where that is coming from since the AssyNo field is tied directly to the backend of the db. You mentioned something about running a query that gets the max AssyNo to populate the field.&lt;/p&gt;
&lt;p&gt;How do I do that? I&amp;#39;m don&amp;#39;t understand how that is supposed to happen. Do I set up another secondary connection. If so, how do I link to the connection. On my form, I&amp;nbsp;have a text box to display the information linked to the main connection. Do I need to change to a different type of control? &lt;/p&gt;
&lt;p&gt;You have been a great help. I hope that I am not asking too much.&lt;/p&gt;
&lt;p&gt;Thank you for any help you can provide.&lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/43109.aspx</link><pubDate>Wed, 17 Jun 2009 22:11:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43109</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=43109</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not super familiar with Access, but can you also set AssyNo to auto increment, maybe make it a calculated column? &lt;/p&gt;
&lt;p&gt;When I asked if it had to be populated, I guess I&amp;#39;m wondering about the use of the field. You know, sometimes we need to know something before we submit a form, because we are also typing a description that is supposed to have the AssyNo in it, or we have some other process that we need it for.&lt;/p&gt;
&lt;p&gt;The &amp;#39;New Record&amp;#39; button is its own special beast, so you&amp;#39;ll not be able to add additional rules to it. It is also not an action available to other rule sets. That is part of what makes this challenging.&lt;/p&gt;
&lt;p&gt;You could add a button called &amp;#39;Get AssyNo&amp;#39;, I suppose, and then after they click New Record, they could click &amp;#39;Get AssyNo&amp;#39; to get the newest number, using the same methods I outlined in your other thread on this -- run a query that gets the max AssyNo, populate the field with that + 1, and submit the form so that the new AssyNo is used.&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/43097.aspx</link><pubDate>Wed, 17 Jun 2009 16:08:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43097</guid><dc:creator>rdodson4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=43097</wfw:commentRss><description>&lt;p&gt;Yes, the main connection is to the Access DB. I set that up when I created the form originally. The main connection refers to tblBoard_Information which AssyNo is one of the fields. The AssyID is set for auto-increment in access but the AssyNo is typed in when using Access. Thatis why I want this number to automatically populate this field when the new record button is pressed. When I do a submit to the DB, the AssyID is automatically added to the DB, but unless the AssyNo field is typed in, that entry is not completed. Hope this answers that question.&lt;/p&gt;
&lt;p&gt;You wrote: Q:&amp;nbsp;Does the AssyNo &lt;strong&gt;have&lt;/strong&gt; to be populated before the form is first submitted?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure how to answer&amp;nbsp;this.&amp;nbsp;My theory was that if the AssyNo populated the field when the new record button is pressed and there is an autosave after that, then another person could not get the same number from the database and have a conflict. Otherwise, if you want until the end of the submit, someone else in the meantime may get that same number. Do that make sense.&lt;/p&gt;
&lt;p&gt;Looking forward to hearing from you. FYI, when the form linked to this table is opened from Access (Access form), the AssyNo has to be typed in manually before the record is saved, however, there are fewer people access the form this way, than will be accessing using the InforPath form. Hope this clarifies that matter.&lt;/p&gt;
&lt;p&gt;In Access, I have a search query set up that shows all of the existing boards, so it is easy to see what number is next. In InfoPath, this isn&amp;#39;t the same situation.&lt;/p&gt;
&lt;p&gt;If you have a better idea, I am VERY open to suggestions. This is my first form linked to an Access DB so I am struggling with the different concepts compared to Access 2003.&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Ralph&amp;nbsp; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Secondary Connection for Drop-Down list</title><link>https://www.infopathdev.com:443/forums/thread/43049.aspx</link><pubDate>Wed, 17 Jun 2009 01:10:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43049</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=43049</wfw:commentRss><description>&lt;p&gt;Glad you&amp;#39;ve got this issue sorted. I&amp;#39;ve replied to your other post with a bit more information based on the question there. However, reading this post, which has a bit more information.... I have to wonder -- is your form built off the Access DB in question? That table has an ID field, correct? Does it auto increment? With a data base bound form, when you submit a new record, it gets its id. Does the AssyNo &lt;strong&gt;have&lt;/strong&gt; to be populated before the form is first submitted?&lt;/p&gt;</description></item></channel></rss>