Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Value For A Combo Box 1

Status
Not open for further replies.

DemonHub

Programmer
Jul 26, 2005
7
CA
Hi,

I have a combobox with only 1 value and this value can be change anytime and that value come from a table.

When I open the form the default value for the combobox must be the only choice in the list.

I've try in the DefaultValue propertie ...

=[comboboxname].[ItemData](0)

... but it's not working.

If someone have a clue thanks in advance.
 
Private Sub Form_Load()
Me.Combo1 = Me.Combo1.ItemData(0)
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top