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

Making a combo box open (pop-down) automatically 1

Status
Not open for further replies.

gaffonso

Programmer
Jul 26, 2001
25
0
0
US
I've got a combo box and I'd like it open up (pop-down and show the values as it does when you click on the down arrow) automatically. Is this possible?

Thanks!

- Gary
 
In Access 97, try this:

Sub cboMyComboBox_GotFocus()
Me!cboMyComboBox.DropDown
End Sub Terry M. Hoey
 
If you need the combobox to dropdown when you open the form you may use this procedure. Remember to setfocus before using dropdown keyword.

Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open

Me!cboMyComboBox.SetFocus
Me!cboMyComboBox.Dropdown

Exit_Form_Open:
Exit Sub

Err_Form_Open:
MsgBox Err.Description
Resume Exit_Form_Open

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top