Results 1 to 5 of 5
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Dropdown Event on a Combo Box?


    This dates back to an earlier thread. My combo boxes start out with zero rows till the user keys in the first character, so clicking on the dropdown button shows nothing to choose from. Is there a way to capture this action (Dropdown) and check for the number of rows? If it equals zero, I would like to send the user a message key the first character. I can't find an event that would trigger this.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I believe you would have to use the Combo's RowSource to take a separate trip to the data and count the Records. That is what I have done in the past.

  3. #3
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    I can do that part, but I don't know how to capture the dropdown event.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Dropdown is a Method and there does not appear to be an Event to determine if this is happening. Also, the Dropdown Method does not have a return value so there is not way, for instance, to see if Dropdown = True. However, a combo needs to have focus before the Dropdown Method can be executed.

  5. #5
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Yeah, I though of a few events to handle it, but only want the message sent when the dropdown displays zero rows.

    Thanks for your feedback.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 14
    Last Post: 09-15-2017, 11:25 AM
  2. Replies: 8
    Last Post: 10-22-2012, 01:24 PM
  3. Combo box dropdown style
    By desk4tbc in forum Programming
    Replies: 4
    Last Post: 10-05-2011, 05:55 PM
  4. combobox.dropdown event not working after error
    By perlyman in forum Programming
    Replies: 1
    Last Post: 04-02-2010, 06:55 PM
  5. Minimizing combo dropdown on click
    By DanW in forum Forms
    Replies: 2
    Last Post: 11-18-2009, 03:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums