P
PPCO
Wondering if there's a way for a list to automatically drop down when a combo
box is clicked on? Thanks
box is clicked on? Thanks
Al Campagna said:PPCO,
Yes, it should work.
Did you try the same code on the combo's OnEnter event?
Any luck with that?
Add a Beep to the code to make sure it's firing.
**Make sure you have [Event Procedure] in the OnClick and/or OnEnter
property box.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
PPCO said:That's odd, seems like it should work, but didn't do anything. Tried a
couple
variations of it as well.
Here's my code:
Private Sub Previous_Record_Click()
On Error GoTo Err_Previous_Record_Click
DoCmd.GoToRecord , , acPrevious
Exit_Previous_Record_Click:
Exit Sub
Err_Previous_Record_Click:
MsgBox Err.Description
Resume Exit_Previous_Record_Click
End Sub
Private Sub NEXT_RECORD_Click()
On Error GoTo Err_NEXT_RECORD_Click
DoCmd.GoToRecord , , acNext
Exit_NEXT_RECORD_Click:
Exit Sub
Err_NEXT_RECORD_Click:
MsgBox Err.Description
Resume Exit_NEXT_RECORD_Click
End Sub
Private Sub EXIT_FORM_Click()
On Error GoTo Err_EXIT_FORM_Click
DoCmd.Close
Exit_EXIT_FORM_Click:
Exit Sub
Err_EXIT_FORM_Click:
MsgBox Err.Description
Resume Exit_EXIT_FORM_Click
End Sub
Private Sub UOM_Click()
UOM.Dropdown
End Sub
PPCO said:The On Enter worked. Thanks!
Al Campagna said:PPCO,
Yes, it should work.
Did you try the same code on the combo's OnEnter event?
Any luck with that?
Add a Beep to the code to make sure it's firing.but didn't do anything.
**Make sure you have [Event Procedure] in the OnClick and/or OnEnter
property box.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
PPCO said:That's odd, seems like it should work, but didn't do anything. Tried a
couple
variations of it as well.
Here's my code:
Private Sub Previous_Record_Click()
On Error GoTo Err_Previous_Record_Click
DoCmd.GoToRecord , , acPrevious
Exit_Previous_Record_Click:
Exit Sub
Err_Previous_Record_Click:
MsgBox Err.Description
Resume Exit_Previous_Record_Click
End Sub
Private Sub NEXT_RECORD_Click()
On Error GoTo Err_NEXT_RECORD_Click
DoCmd.GoToRecord , , acNext
Exit_NEXT_RECORD_Click:
Exit Sub
Err_NEXT_RECORD_Click:
MsgBox Err.Description
Resume Exit_NEXT_RECORD_Click
End Sub
Private Sub EXIT_FORM_Click()
On Error GoTo Err_EXIT_FORM_Click
DoCmd.Close
Exit_EXIT_FORM_Click:
Exit Sub
Err_EXIT_FORM_Click:
MsgBox Err.Description
Resume Exit_EXIT_FORM_Click
End Sub
Private Sub UOM_Click()
UOM.Dropdown
End Sub
:
PPCO,
Use the Click event (ex. cboComboBox)
Private Sub cboComboBox_Click()
cboComboBox.Dropdown
End Sub
or...
Try the Enter event when you tab into the combobox
Private Sub cboComboBox_Enter()
cboComboBox.Dropdown
End Sub
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your
life."
Wondering if there's a way for a list to automatically drop down when a
combo
box is clicked on? Thanks