Results 1 to 3 of 3
  1. #1
    nitinrao is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    8

    Showing drop down list while entering data in a field


    Hi everyone!

    I have a form with a field that has a drop down menu (which links back to a field in another table). When entering data in this field, the user can either select data from the drop down menu or manually type it (and of course there is an error when the entered name is not part of the drop down menu). However, I want to make it so that when a user manually types data into the field, he also sees the drop down menu show up. More specifically, I want to enter a code that reveals the drop down menu (even while typing in the field) on the "On Key Press" event.
    what would my code be?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I typically do it in the got focus event, but the code would be:

    Me.ComboName.Dropdown

  3. #3
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    You can also change the number of rows displayed by changing the "List Rows" property of the combo box, the default number of rows is 8.

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

Similar Threads

  1. Entering duplicate data in Form
    By cotri in forum Forms
    Replies: 1
    Last Post: 01-06-2010, 11:45 PM
  2. drop down list
    By tceicher in forum Access
    Replies: 5
    Last Post: 08-13-2009, 05:41 AM
  3. Question about entering data through form
    By vixtran in forum Database Design
    Replies: 6
    Last Post: 06-16-2009, 07:23 AM
  4. Replies: 2
    Last Post: 03-16-2009, 12:19 PM
  5. I can't create a drop-down list box
    By cpuser in forum Access
    Replies: 4
    Last Post: 02-18-2008, 10:11 AM

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