Results 1 to 2 of 2
  1. #1
    anyclark is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    1

    Lookup field is working, but I'd like to see a value other than index number

    Click image for larger version. 

Name:	Show values instead of index numbers in Access lookup table.jpg 
Views:	8 
Size:	113.1 KB 
ID:	37837
    I hope the jpg makes my question clear. In my case, the Asset table contains Model (a lookup field). The Model table defines associations between Manufacturer (e.g. Dell), Model (e.g. OptiPlex 7050) and Type (e.g. Desktop).
    Over in the Asset table, it's able to show a drop-down field showing all three of these data elements from Model at once, which is good. But I'd like it to show "Model, OptiPlex 7050; Manufacturer, Dell; Type, Desktop". Instead, it's showing "Model, Optiplex 7050; Manufacturer, 1; Type, 1". Because Dell has autonumber 1 in the index field ManufacturerID in the Manufacturer table, while Desktop has autonumber 1 in the index field EquipmentTypeID in the EquipmentType table.


    Click image for larger version. 

Name:	lookup field in Asset, showing index values.jpg 
Views:	7 
Size:	101.1 KB 
ID:	37838

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Advise not to build lookups in table. Build combobox or listbox on form. http://access.mvps.org/Access/lookupfields.htm

    RowSource would have to be an SQL statement that joins tables in order to retrieve descriptive info.
    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. Composite Index With Null Field Not Working
    By Micron in forum Database Design
    Replies: 2
    Last Post: 02-28-2019, 09:07 AM
  2. Lookup field insits being number
    By jprcox in forum Access
    Replies: 1
    Last Post: 06-18-2016, 03:41 PM
  3. Converting lookup text field to number for primary
    By Ruegen in forum Database Design
    Replies: 4
    Last Post: 09-11-2013, 08:23 PM
  4. Replies: 1
    Last Post: 09-11-2012, 10:31 PM
  5. Replies: 1
    Last Post: 07-12-2012, 12:09 PM

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