Results 1 to 4 of 4
  1. #1
    Cindygo is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    2

    Clear combo box


    I’m sure this is easy but I can’t figure it out. I have looked at the Northwind Employee Details form for clues but nothing I try works.

    I created a combo box on a form. When I select a client’s name in the combo box the form populates with the client data. That is what I want.

    The issue is that the combo box retains the client’s name I selected rather than clearing out. I simply want to view the list, select a name and have the name NOT display in the box itself. How do I do that?

    How can I make the combo box display nothing after I select the name?

    Thanks for your help,
    cindy

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    In the AfterUpdate event of the ComboBox put:
    Me.YourComboBoxName = Null
    ...using YourComboBoxName of course.

  3. #3
    Cindygo is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    2
    Thanks RuralGuy. That is simple enough.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're very welcome. Glad we could help.

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

Similar Threads

  1. VBA Error Handling Clear
    By josephff in forum Programming
    Replies: 19
    Last Post: 08-30-2011, 12:12 PM
  2. Clear some fields and not others
    By funkygoorilla in forum Access
    Replies: 12
    Last Post: 08-23-2011, 07:38 AM
  3. Clear value list in combo box
    By jgelpi16 in forum Programming
    Replies: 4
    Last Post: 05-27-2011, 12:45 PM
  4. How to clear the form?
    By Mrcams in forum Access
    Replies: 3
    Last Post: 01-03-2011, 12:15 AM
  5. Clear all checkboxes?
    By thekruser in forum Forms
    Replies: 2
    Last Post: 09-16-2010, 09:50 AM

Tags for this Thread

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