Results 1 to 5 of 5
  1. #1
    cysklement is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Posts
    15

    Table that depends on one another lookup column.

    Hi Need help pls.

    I have a table machine with fields:
    • ID(PK)
    • model ( lookup column to machine model)
    • serialno
    • type


    Then a table meter reading:


    • ID
    • machineserialno (lookup column to tblmachine/serialno)
    • readingdate
    • totalcounter


    I want it to be like when i press lookup column in tblmeterreading/ machine serialno....it shall show the machine serial no|model in the popup combobox.
    Instead it shows my machine serialno|id,

    for example: when I select the machineserialno. a combobox shall show:
    s/n:221233 | sony

    instead it show:
    s/n:221233 | 1


    ??

  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,772
    Advise not to build lookups in table http://access.mvps.org/access/lookupfields.htm

    Also advise not to do data entry/edit directly with tables - build forms and use a combobox.

    The lookup shows number because that is the actual value of model field in Machine table. If you want to show the model name, the lookup RowSource will have to be a query that joins the Machine and MachineModel tables.
    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
    cysklement is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Posts
    15
    Thanks June 7.

  4. #4
    cysklement is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Posts
    15
    Thanks June 7.

    How do I build a query of joining the machine and machinemodel tables? can I get a sample? because i am a beginner in access and doesnt know much about it.....

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Use the query builder. Pick the tables from list, link them on related key fields, drag fields to the grid. This is very basic Access functionality. Access Help has guidelines.
    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: 3
    Last Post: 05-30-2014, 12:34 AM
  2. Replies: 1
    Last Post: 08-02-2013, 03:13 PM
  3. Replies: 5
    Last Post: 09-21-2012, 11:23 AM
  4. Lookup column based on table value
    By greenkevin86 in forum Access
    Replies: 9
    Last Post: 04-30-2012, 06:03 PM
  5. Replies: 7
    Last Post: 06-14-2011, 03:45 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