Results 1 to 2 of 2
  1. #1
    cmarziale is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    1

    ComboBox returns bound ID rather than lookup value

    The first table named SITES defines locations

    ID_SITE is an auto number field and primary key
    CLLI is the name of the location I need to lookup

    The second table named SwitchPathInv which connects two locations together

    SwitchPathID is an AutoNumber field and primary key
    ASiteID is a number field with a relationship to ID_SITE which represents one end of the path. This field has a lookup of its own to display the CLLI of a site rather than the ID_SITE in the table def.

    SELECT SITES.CLLI, SITES.ID_SITE FROM SITES ORDER BY SITES.CLLI; BoundColumn=2 ColumnCount=1

    ZSiteID represents the other end of the path and also has a relationship to ID_SITE. This has the same lookup.



    A third table named RadioInv inventories equipment at sites. Radio (equipment) on this table need to have a SwitchPathID assigned to individual equipment records. When I create a combo box for control source SwitchPathID, I'm using the following SQL:

    SELECT [SwitchPathInv].SwitchPathID, [SwitchPathInv].ASiteID, [SwitchPathInv].ZSiteID FROM SwitchPathInv;

    Now when I look at the datasheet for the query, I see the correct information, that is the A and Z CLLI is showing for each SwitchPathID. However, in the combo box, I'm only seeing the ID_SITES.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Sounds like you need to set up a multi-column combobox, review http://datapigtechnologies.com/flash...combobox3.html
    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: 1
    Last Post: 09-11-2012, 10:31 PM
  2. Set value of bound combobox to NULL
    By Kotoca in forum Forms
    Replies: 1
    Last Post: 06-30-2012, 02:27 PM
  3. Replies: 2
    Last Post: 04-10-2012, 12:30 AM
  4. Replies: 5
    Last Post: 12-21-2011, 07:16 PM
  5. Bound form with bound combobox
    By Jerry8989 in forum Access
    Replies: 2
    Last Post: 12-05-2011, 01:50 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
  •  
Other Forums: Microsoft Office Forums