<?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>Microsoft Access</title><link>https://www.infopathdev.com:443/forums/141.aspx</link><description>Qdabra is committed to answering InfoPath questions. However, we do not support Microsoft Access. For non-Access questions, please use the other boards.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/44567.aspx</link><pubDate>Fri, 17 Jul 2009 20:45:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44567</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=44567</wfw:commentRss><description>&lt;p&gt;Argh! we moved some files around, and it was tough to find. I think it is &lt;a href="http://www.infopathdev.com/files/folders/examples/entry41102.aspx"&gt;this&lt;/a&gt; sample (updating the original link too).&lt;/p&gt;</description></item><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/44566.aspx</link><pubDate>Fri, 17 Jul 2009 20:31:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44566</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44566.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=44566</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;Where can I find the sample form you mention in this reply? When I click on it, I get a &amp;quot;Not Found: Forum Not Found&amp;quot; message.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;RhysAZ&lt;/p&gt;</description></item><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/31476.aspx</link><pubDate>Thu, 14 Aug 2008 20:56:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31476</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31476.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=31476</wfw:commentRss><description>&lt;p&gt;You can use conditional formatting on your repeating table to do this. I&amp;#39;ve posted a sample form &lt;a href="http://www.infopathdev.com/files/folders/examples/entry41102.aspx"&gt;here&lt;/a&gt;. Download it, open it in design mode and preview it. You can add rows and if you enter the same value in the first field in two rows, one will hide. If you look at the table&amp;#39;s conditional formatting, you&amp;#39;ll see I used preceding-sibling in the filter. Let me know if you have any trouble with the sample.&lt;/p&gt;</description></item><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/31472.aspx</link><pubDate>Thu, 14 Aug 2008 19:36:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31472</guid><dc:creator>sidd9</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=31472</wfw:commentRss><description>&lt;p&gt;Thank you Hilary, this is exactly the example&amp;nbsp;I was looking for. Oddly enough in the meantime I almost found a work around, where I used query fields from a main data source and created a rule to transfer that data into the actual data fields. Where I am stuck now is, I can&amp;#39;t figure out how to filter out rows that contain duplicate fields In this case, the &lt;strong&gt;job name&lt;/strong&gt; cannot repeat but the &lt;strong&gt;client name&lt;/strong&gt; can. I do need to use VB.&lt;/p&gt;
&lt;p&gt;I think this work around may just end up being easier to do then doing the whole thing through a secondary data source (and re-writing everything in VB), so if you can help me with filtering duplicates out of a repeating&amp;nbsp;table, I would be fine with that. Either way is fine =]&lt;/p&gt;
&lt;p&gt;Thank you for such a quick reply.&lt;/p&gt;</description></item><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/31466.aspx</link><pubDate>Thu, 14 Aug 2008 18:56:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31466</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=31466</wfw:commentRss><description>&lt;p&gt;Hi -- I have a blog post on this &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2008/07/04/how-do-i-copy-repeating-data-from-an-external-source-into-my-form.aspx"&gt;here&lt;/a&gt;, but the samples are C# or jscript. Are you already using VB for other code in yoru form? If not, you may want to look at the C# sample and give it a try! If you need to use VB, let me know.&lt;/p&gt;</description></item><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/31458.aspx</link><pubDate>Thu, 14 Aug 2008 14:37:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31458</guid><dc:creator>sidd9</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=31458</wfw:commentRss><description>&lt;p&gt;Thank you for the reply. I read through those two articles. I was hoping for some code to automatically do this for me. I&amp;#39;m very new to scripting with vb in infopath. I&amp;#39;m looking for code to loop through a database from a filtered field (I can set up a rule for that easy) and then automatically add a new row and fill out the field for each item it finds in the database (job name).&lt;/p&gt;</description></item><item><title>Re: Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/31448.aspx</link><pubDate>Thu, 14 Aug 2008 04:32:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31448</guid><dc:creator>sandhyapati</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=31448</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you go through the following links &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Infopath/Q_23492413.html"&gt;http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Infopath/Q_23492413.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://enterprise-solutions.swits.net/infopath2003/article.php?t=sequential-db-table-record-navigation&amp;amp;c=infopath2003"&gt;http://enterprise-solutions.swits.net/infopath2003/article.php?t=sequential-db-table-record-navigation&amp;amp;c=infopath2003&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;These may help you&lt;/p&gt;</description></item><item><title>Autofill a field in a repeating table based on an Access database.</title><link>https://www.infopathdev.com:443/forums/thread/31445.aspx</link><pubDate>Wed, 13 Aug 2008 20:06:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31445</guid><dc:creator>sidd9</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=141&amp;PostID=31445</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have an infopath07 template I am working on. I have a main source with a repeating table, with two fields, &lt;strong&gt;Client&lt;/strong&gt; and &lt;strong&gt;Job name&lt;/strong&gt;. These fields are being populated from an Access Database(set up as a secondary source), where each &lt;strong&gt;Job name&lt;/strong&gt; is specific to the &lt;strong&gt;Client&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I have the Client field in my form as a drop-down list being autopopulated from the secondary source.&lt;/p&gt;
&lt;p&gt;What I want to do is search the database for all the Job names for the client I choose and then create a new row in a repeating table, and fill the Job name(in that row)&amp;nbsp;with each job. Then be able submit this back to the database.&lt;/p&gt;
&lt;p&gt;So the end result would be something like this: I choose a Client in the table, then I click a button, this creates a row for each job there is and fills the job name in there, then I submit this back to the database.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp;found&amp;nbsp;some&amp;nbsp;bits of code&amp;nbsp;but it will only make 1 row and populate it with the first job in the database.&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;img style="WIDTH:712px;HEIGHT:350px;" height="350" src="http://i38.photobucket.com/albums/e123/zyberzidd/template1.jpg" width="712" alt="" /&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;get external data source&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; MasterDataSource &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DataSource = DataSources.Item(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Master&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;get values from a couple of fields&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; xpath &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Backup_Tracker/@Company_Name&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; field1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = MasterDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;xpath = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Backup_Tracker/@Job_Name&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; field2 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = MasterDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;clone last repeating table row&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;xpath = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group1/my:group2[last()]&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; oldGroup &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = MainDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; newGroup &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = oldGroup.Clone()&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;insert the new group&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;oldGroup.InsertBefore(newGroup)&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;set the values of the fields&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;newGroup.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:client&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(field1.Value)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;newGroup.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:job.name&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(field2.Value)&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>