Results 1 to 2 of 2
  1. #1
    Megos is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2013
    Posts
    1

    I need help displaying multiple columns in a combo box

    Hello-



    I have two tables in a database, Customers (Customer ID, Name, Address, Phone, Email) and Account (Account Number, Balance, Account Type, Customer ID). I need to create a combo box in the Account table so that when Customer ID is selected it also shows their name. The combo box now only shows Customer ID and for the life of me I can't get it to also show their name. My row source is "Customers", bound column=1, column count=2.

    I'm taking a Business Information Systems class with a horrible, unhelpful instructor and this class depends on my graduation in 6 weeks. I'm not very proficient in Access and if anyone can give me any insight as to what I'm doing wrong, that would be amazing.

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    This is setting Lookup in table. I never set Lookups in tables. Users don't work directly with tables and queries. I create forms and reports for user interface. Build combobox on form.

    Combobox (or table Lookup) RowSource like:

    SELECT [Customer ID], [Name] FROM Customers ORDER BY [Name];

    Set ColumnWidths: 0";2"

    Name is a reserved word. Should not use reserved words as names. Also, avoid spaces and special characters (underscore is exception).
    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. Replies: 2
    Last Post: 02-21-2013, 07:47 AM
  2. Replies: 7
    Last Post: 01-02-2013, 11:23 PM
  3. Replies: 10
    Last Post: 03-01-2012, 11:31 PM
  4. Lookup multiple columns in combo box
    By fcp in forum Programming
    Replies: 1
    Last Post: 12-22-2011, 08:44 PM
  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