Results 1 to 3 of 3
  1. #1
    cartotech81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    7

    Access 2010 Lookup Column Display

    Tables


    MANFACTURER
    MODEL
    INVENTORY

    MANUFACTURER
    MAN_NUM
    MAN_NAME

    MODEL
    MODEL_NUM
    MODEL_NAME
    MAN_NUM (FK)

    INVENTORY
    INV_NUM
    MODEL_NUM

    I am trying to create a lookup in the Inventory Table for the MODEL_NUM column. I would like when the user clicks the drop down box they see the choice options as MAN_NAME, MOD_NAME.

    Then when someone chooses the option they want it displays the MODEL_NAME in the field. I would actually like it to display a calculated column of MAN_NAME and MODEL_NAME, just not sure that is possible. Below is the code I have. When running a query it displays the data that I want. When looking at in datasheet mode it only shows MOD_NAME. It then displays the MOD_NUM.

    Code:
    SELECT MANUFACTURER.MAN_NAME, MODEL.MOD_NAME
    FROM MANUFACTURER INNER JOIN MODEL ON MANUFACTURER.MAN_NUM = MODEL.MAN_NUM
    ORDER BY MODEL.MOD_NAME, MODEL.MAN_NUM;
    For extra information my properties are as follows:

    DISPLAY CONTROL: Combo Box
    ROW SOURCE TYPE: Table/Query
    ROW SOURCE:
    Code Above
    BOUND COLUMN: 2
    COLUMN COUNT:
    3
    COLUMN HEADS:
    YES
    COLUMN WIDTHS:
    0";1.6459";1.3646"

    Any help would be greatly appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    You have BoundColumn set to the MODEL_NAME column, think should be MODEL_NUM. It is BoundColumn value that will be saved.
    Which name is correct: MOD_NAME or MODEL_NAME?

    SELECT MODEL_NUM, MAN_NAME & " / " & MODEL_NAME
    FROM MANUFACTURER INNER JOIN MODEL ON MANUFACTURER.MAN_NUM = MODEL.MAN_NUM
    ORDER BY MODEL.MODEL_NAME, MODEL.MAN_NUM;

    BoundColumn: 1
    ColumnCount: 2
    ColumnWidths: 0",2"
    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.

  3. #3
    cartotech81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    7
    Sorry about that. It is MOD_NAME and MOD_NUM throughout the db.

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

Similar Threads

  1. Converting matrix to column in access 2010
    By peteramullen in forum Access
    Replies: 4
    Last Post: 08-13-2012, 05:58 PM
  2. Lookup Column Display
    By DDEB in forum Access
    Replies: 1
    Last Post: 05-11-2012, 04:46 PM
  3. Replies: 1
    Last Post: 12-08-2011, 08:03 AM
  4. Getting display value of lookup column?
    By kman42 in forum Access
    Replies: 2
    Last Post: 04-05-2011, 08:23 AM
  5. Import to Excel from Access column of LOOKUP data type
    By Derek in forum Import/Export Data
    Replies: 1
    Last Post: 12-06-2010, 06:27 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