combo box to default to first in list

swmorin

Registered User.
Local time
Yesterday, 21:22
Joined
Jan 10, 2012
Messages
66
How do I set a combo box to default to first in list?
 
You can set it in the Form's On Current Event using;
Code:
Me.ComboName.DefaultValue = Me.ComboName.ItemData(0)
Our you can set it whilst the form is in design View by Setting the Default Value on the Data tab of the Combo Box property sheet.
Note; you will have to use the value that is held in the Bound column of the Combo, which equates to the first value in the list.
 
thank you that worked great
 

Users who are viewing this thread

Back
Top Bottom