<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Display Query Results on Form</title><link>https://www.infopathdev.com:443/forums/thread/66170.aspx</link><pubDate>Wed, 27 Apr 2011 19:39:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66170</guid><dc:creator>Vrajesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=66170</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I&amp;#39;m hoping someone can help with this, I have an Infopath 2007 form, which I want to pre-populate with data from a table from an SQL DB. That table, as a few categories in it, and theres the potential of the same data being repeated, which is what I want. Where I&amp;#39;m running into difficulty is I have written some Code using VSTA, that&amp;nbsp;queries the data that matches 1 field which could pull multiple rows.&amp;nbsp;From there&amp;nbsp;I want each of the rows to be displayed on the form (essentially&amp;nbsp;presenting all&amp;nbsp;rows matching that field to the users).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve tried to use&amp;nbsp;code to&amp;nbsp;insert the data into a repeating table, however it only shows one row. I&amp;#39;m hoping to avoid setting up a secondary data source and using conditional formatting to filter the data, as it slows the form down a&amp;nbsp;bit. Anyone has any ideas?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>