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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a first item of the combo box be as a default value 1

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
How to get a value from a combo box to be a default when form is opening?
 
Try using the DefaultValue property of the Combo box. Say for the Combo2 control, you could set the DefaultValue property to

[Combo2].[ItemData](2)

This would set the inital default as the third item in the list

[Combo2].[ItemData](0)
would set the initial value as the first item in the list.


J. Jones
jjones@cybrtyme.com
 
Hi!

Just set the value to the first value:

YourComboBox.Value = YourComboBox.Column(0,0)

The correct property may be Columns instead of Column, I never can remember.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top