<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Drop down listbox connected to MsAccess database</title><link>https://www.infopathdev.com:443/forums/thread/19603.aspx</link><pubDate>Sun, 06 May 2007 03:33:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19603</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19603.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19603</wfw:commentRss><description>Hi reijndert,
&lt;br /&gt;&lt;br /&gt;
First of all, I would suggest that you take a look at this blog post, it might be helpful:
&lt;a href='http://www.infopathdev.com/blogs/matt/archive/2006/01/09/Create-a-Multi_2D00_View-Master_2F00_Detail-using-a-Query-Filter.aspx'&gt;http://www.infopathdev.com/blogs/matt/archive/2006/01/09/Create-a-Multi_2D00_View-Master_2F00_Detail-using-a-Query-Filter.aspx&lt;/a&gt;

&lt;br /&gt;&lt;br /&gt;
To set the default value of the drop-down you can do this in code by setting the value of the node to one of the values returned from the database.  To do this, simply copy the first value from the database results to the node for the drop-down.</description></item><item><title>Drop down listbox connected to MsAccess database</title><link>https://www.infopathdev.com:443/forums/thread/5949.aspx</link><pubDate>Fri, 01 Dec 2006 10:59:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5949</guid><dc:creator>reijndert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5949</wfw:commentRss><description>Problem:&lt;br /&gt;In my form I have several dropdown listboxes connected to an msaccess database. How can I 'force' a default selection? I alway get a blanc line as default. In some cases no problem, but sometimes I want to get the default  selected without clicking.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;=======&lt;br /&gt;listbox1 dataconnection:&lt;br /&gt;select [description] from [department] as [department]&lt;br /&gt;&lt;br /&gt;Since this is the first listbox, a blanc default is no problem, you just have to select the rights department&lt;br /&gt;&lt;br /&gt;listbox2 dataconnection:&lt;br /&gt;select [name] from [executives] as [executives]&lt;br /&gt;&lt;br /&gt;This second listbox gets a filter, based on the departmentcode extracted from listbox1.&lt;br /&gt;(I cannot use a sql-query as filter... Found another solution that worked).&lt;br /&gt;&lt;br /&gt;All works fine, but in listbox2 I ALSO get a blanc line as default, even if there is only 1 result!!.&lt;br /&gt;&lt;br /&gt;In the case of 1 result I want this result to be defaulted, all other cases a blanc default is no problem.&lt;br /&gt;&lt;br /&gt;Any suggestions?&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>