Can I make a Combo Box always show the first value in the list

homer2002

Registered User.
Local time
Today, 18:12
Joined
Aug 27, 2002
Messages
152
I have a combo box with only one value in it (this is because it is filtered down from another combo box.

The combo box is bound to a table

when I click AddRecord the combo box always appears blank.
Is there any way to make this combo box always display this value, or the first value in it's list instead of being blank??

IF this requires the default value to be set thats fine because I have a command button ready to hack the code into.

TIA Homer
 
Last edited:
Try this on the Form_Current Event

if me.newrecord = true then
me.NameofCombo = me.NameofCombo.Itemdata(0)
end if
 

Users who are viewing this thread

Back
Top Bottom