Problem:
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.
Example
=======
listbox1 dataconnection:
select [description] from [department] as [department]
Since this is the first listbox, a blanc default is no problem, you just have to select the rights department
listbox2 dataconnection:
select [name] from [executives] as [executives]
This second listbox gets a filter, based on the departmentcode extracted from listbox1.
(I cannot use a sql-query as filter... Found another solution that worked).
All works fine, but in listbox2 I ALSO get a blanc line as default, even if there is only 1 result!!.
In the case of 1 result I want this result to be defaulted, all other cases a blanc default is no problem.
Any suggestions?