Results 1 to 3 of 3

Thread: Combo dropdown

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318

    Combo dropdown

    Hi all,
    I am working in MS Access.
    Is it possible to dropdown a combobox using the Down Arrow key when the Combo box has focus?
    Thanks.

  2. #2
    Fanatic Member WorkHorse's Avatar
    Join Date
    Jul 2002
    Location
    Where you live.
    Posts
    591
    Set the On Key Up event to [Event Procedure]. Here's the code:

    VB Code:
    1. Private Sub Combo0_KeyUp(KeyCode As Integer, Shift As Integer)
    2.     ' Show dropdown on arrow down.
    3.     If KeyCode = 40 Then Combo0.Dropdown
    4. End Sub

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318
    Thanks. That works!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width