<?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>ADO or Secondary Source Lookups / VS.NET</title><link>https://www.infopathdev.com:443/forums/thread/12887.aspx</link><pubDate>Fri, 02 Jun 2006 15:38:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12887</guid><dc:creator>wlevy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12887</wfw:commentRss><description>Hi All -&lt;br /&gt;&lt;br /&gt;Based on the selected value from a drop-down listbox, I want to retrieve the associated data from a lookup table in SQL Server.  According to my reading, it's best to do this with .NET managed code, so that's what I'm trying to do.  Does anyone have some VB.NET sample code I could use as a model?  Do I use the secondary data source I defined for my lookup table in InfoPath, or do I use ADO?  ADOAdapters?  Need some help!&lt;br /&gt;&lt;br /&gt;Thanks</description></item></channel></rss>