Can I make a Combo Box always show the first value in the list (1 Viewer)

homer2002

Registered User.
Local time
Today, 18:52
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:

Fizzio

Chief Torturer
Local time
Today, 18:52
Joined
Feb 21, 2002
Messages
1,885
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

Top Bottom