Results 1 to 2 of 2
  1. #1
    fcp is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    8

    Lookup multiple columns in combo box

    Is there a way to lookup information ina bound combo box based on either columns.



    Here is a scenario I have a bound combobox with two columns Column(0), and Column(1) both visible. I want to search the combobox based on either value of both columns. In the words if I search ID it will lookup the value and if I search by name it will also lookup names.

    Is there a sample VB script in the after update event of combo box that will accomplish that?


    Much appreciated!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If you have a unique ID value, why also need to search by name? Are users allowed to enter a name not in the RowSource list?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Lookup columns
    By richard flack in forum Database Design
    Replies: 8
    Last Post: 11-07-2011, 01:35 AM
  2. Combo Lookup
    By b123 in forum Forms
    Replies: 1
    Last Post: 02-24-2011, 11:24 AM
  3. Lookup Wizard and Multivalued columns
    By haygun in forum Access
    Replies: 0
    Last Post: 01-27-2010, 11:04 AM
  4. Lookup Columns Multiple Records in report
    By schultzy in forum Reports
    Replies: 1
    Last Post: 01-02-2010, 12:21 AM
  5. Combo Box with multiple columns
    By desireemm1 in forum Access
    Replies: 1
    Last Post: 08-17-2009, 02:36 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