Is combobox dropped down?

Fernando

Registered User.
Local time
Today, 16:17
Joined
Feb 9, 2007
Messages
88
Is there a way to test or know if a combo box is dropped down?
 
.Dropdown is an action in Visual Basic, not a property, so I would say no...but that's not certain of course.
 
What i am trying to accomplish in a continuous form is "if a combo box is NOT dropped down, then when using the down arrow key (Form's KeyDown event) go to next record, else do what it does by default (which is to go down thru the combobox list)" Any IdeaS?
 
Not really, because I don't think this is possible. The only thing I can think of that is close would be something like this...
Code:
Private Sub Form_Key_Down()
  
  If me.activecontrol = me.combobox AND IsNull(me.combobox) Then
    Docmd.GoToRecord acDataForm, "formname", acNext
      Else If me.activecontrol = me.combobox Then
    me.combobox.dropdown
      Else

  End if

End Sub
 

Users who are viewing this thread

Back
Top Bottom