Default to first value in combo box

A

Alex

Is there a way to have the first value in a combo box be the default value in
that control? Thanks
 
F

fredg

Is there a way to have the first value in a combo box be the default value in
that control? Thanks

As the combo box Default Value property, write:
= [ComboName].ItemData(0)

Change [ComboName] to whatever the actual name of the combo box is.
 
A

Alex

This did not work. Is it maybe because my combobox is populated based on a
record choice from combobox2? In combobox2 onchange I have requeried
combobox1 though. Any ideas?

Alex

fredg said:
Is there a way to have the first value in a combo box be the default value in
that control? Thanks

As the combo box Default Value property, write:
= [ComboName].ItemData(0)

Change [ComboName] to whatever the actual name of the combo box is.
 
Top