I have read the posts on using Sendkeys to dropdown the list in a
combo box. However, doesn't that require the combo box to have the
focus?
My situation is a little different. I have a text box and on the
BeforeUpdate of that text box I check a value. If the value > 0, then
the text box is OK and the program can continue. If the value = 0 or
null, I want a combo box to drop down.
For simplicity here are the control names:
-----------------------------------------
Text1 ---> My text box
Text2 ---> must be greater than zero
Combo1 ---> The combo box I want to drop down.
Access will not let me do Combo1.DropDown while still in the
Text1_BeforeUpdate event. It will also not let me do Combo1.Setfocus.
So I thought of using the SendMessage API call to send a dropdown
message to the combo box. Will that work? Any other suggestions?