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

Setting a listbox's default value 1

Status
Not open for further replies.

jdgreen

Technical User
Mar 21, 2001
144
US
I have a listbox on a form that gets values from a combination of comboboxes used as filters. I am trying to set the default value of the listbox to be the first value in the list. Since this value changes depending upon the choices made in the comboboxes I am at a loss. I know this should be easy, but I'm having a major block on it.

John Green
 
You may try this:
[name of listbox].ListIndex = 0
or this:
[name of listbox].Selected(0) = True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top