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

Setting the default value in a combo box

Status
Not open for further replies.

Muddman

MIS
May 22, 2001
13
0
0
US
I am having trouble setting the default value in my combo box. What I am trying to do is have a particular value in my list show up first when a form is opened. My list is being pulled from a table in the DB. I have tried writing an expression in the expression builder section of the combo box, but I am not having any luck.

Any help would be great.

Thanks
 
Would help if we new what you were writing that isnt working
 
I tried puting this in the default value of the combo box

=[ComboBox Name].[DefaultValue] = "String in ComboBox"

Also

=[ComboBox Name].ItemData(N) N equaling the position the combo Box

Does this Help
 
Muddman,

Modify =[ComboBox Name].[DefaultValue] = "String in ComboBox" to just = "String in ComboBox" for the combo box default value.

Your second attempt, =[ComboBox Name].ItemData(N), should work as it is (N is the N+1th row of your combo box, where the first row is a row number 0).

Ragards, Pavla.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top