Results 1 to 2 of 2
  1. #1
    username29 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    1

    Display labels instead of values in a subform datasheet

    I think the solution to this question is to use a lookup table, but I am an Access beginner so please go slowly.

    I have a subform that is displayed as a datasheet, and the source of this data is from another database. Essentially, it shows someone's name and status, but the status is displayed as a number. The people using the database don't know what this value means, so I was asked to display the label instead.

    The values still need to remain in the database where the data resides, but can I use a lookup table or some other mechanism so that the label is displayed in the database the users are viewing? How exactly do I do this?

    Ie...the data below resides in Database A but is displayed in Database B:
    Col1 | Col2 | Col3
    John | Smith | 2
    Jane | Doe | 1

    And in Database B only, it should show as:
    Col1 | Col2 | Col3
    John | Smith | Inactive
    Jane | Doe | Active



    Note that the users of Database B will not be updating Col3 data, they will just be viewing it.

    Thanks in advance!!
    Last edited by username29; 09-10-2014 at 10:44 AM. Reason: bold text

  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,771
    Options:

    1. If Col3 is a Yes/No field, set Format property to display Active/Inactive - since you show values 1 and 2 I presume this is not a Yes/No field, so continue to next option

    2. multi-column combobox http://www.datapigtechnologies.com/f...combobox3.html
    RowSource can pull values from table or can be ValueList typed into the RowSource

    3. include the lookup table in form RecordSource
    set join type as "Retrieve all records from {data table name} and only those from {lookup table name} that match
    bind textboxes to the lookup field and set as Locked Yes, TabStop No

    4. IIf() or Switch() or Choose() expression in query or textbox

    5. DLookup() function
    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: 19
    Last Post: 09-09-2014, 01:36 AM
  2. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  3. Replies: 1
    Last Post: 07-22-2013, 12:00 PM
  4. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  5. Replies: 8
    Last Post: 08-26-2012, 11:11 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