Results 1 to 3 of 3
  1. #1
    mraccess is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012

    Populating a combo box from a text field, but keeping the combo box full if no match

    I've got a problem that I could use some advice on.

    Basically I have a text field that is manually entered (account number), where after entered automatically populates a combo box with the name of a customer. This is working just fine.

    However, if an account number match is not found, the combo box logic fails--but what I need is the for the combobox to default to all customers which would allow the user to pick one. Is there an easy way to do this ? I know Access does not allow case statements.


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    Setup sounds backwards to me. Why not select account number from combobox and textbox displays customer name?
    How to attach file: To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Richmond (Virginia, not North Yorkshire!)
    Quote Originally Posted by June7 View Post
    Setup sounds backwards to me. Why not select account number from combobox and textbox displays customer name?
    Backwards and inside-out! The OP also speaks of populating a Combobox with a single customer name!

    The developer is, perhaps, in a Parallel Universe?

    After all, he states
    Quote Originally Posted by mraccess
    "I know that Access does not allow case statements!"
    Since when?

    Linq ;0)>
    The problem with making anything that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Text field to Combo Box problem
    By petefc in forum Database Design
    Replies: 11
    Last Post: 01-26-2012, 11:19 AM
  2. Replies: 3
    Last Post: 10-13-2011, 04:42 PM
  3. Replies: 4
    Last Post: 08-16-2011, 05:54 PM
  4. Replies: 3
    Last Post: 06-29-2010, 12:08 PM
  5. Use a combo box to populate a text field
    By niesenj in forum Forms
    Replies: 2
    Last Post: 01-29-2010, 01:57 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
Tech Forums: Microsoft Office Forums