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

Select 1st item in list on form open

Status
Not open for further replies.

knighty03

Technical User
Aug 12, 2003
32
GB
I have a form which contains a list box with a figure but I would like it to be selected when the form opens so it gets the focus and the first line in the list is selected. Any help.
 
Hi,

The easiest way to do all of that is to change the tab order in the form. In design view, go to View --> Tab Order, and then grab the field you want and drag it to the top of the list. That usually makes that control the first thing selected when you open a form.

Secondly, to make it select one of the values, you go to the properties of that drop down box and give it a Default value. Simply type the value you want it to select.

Hope that helps. It can also be done in VBA. Let me know if you want to know how to do that (reply to this post).

Leanne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top