Results 1 to 3 of 3
  1. #1
    Nimo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    14

    one to many relationship: changing the values in 1 table to match another

    Hey,


    I have two tables, one has a list of feels related to transactions: Transaction ID, transaction type, landlord name, and tenancy.



    The second table has 2 fields: landlord ID and landlord name...

    As u can see I have the landlord name in the transaction table, but I dont want the table to display the landlord names, I would prefer if it displays the corresponding landlord ID from the second table but I cant seem to figure out how.. Can someone help ?

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Typically you have a Fake Key and relate it to the Primary Key when linking tables. Or you use a Lookup table via the Fake Key. Example:
    tblTransaction will have a Fake Key LandlordID and then use this to Lookup the Landlord in tblLandlord
    HTH

    FYI: I did not mean to recommend a Lookup in your table, just using a Combobox as an example.

    Good Luck With Your Project!
    Last edited by burrina; 05-11-2014 at 01:13 PM. Reason: Additional Info

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I have deleted your duplicate thread. Please do not post duplicate threads.

    Use a combobox to select landlord and save the LandlordID into transaction table. Review http://www.datapigtechnologies.com/f...combobox3.html

    I NEVER build lookups in tables. http://access.mvps.org/access/lookupfields.htm

    Build and form for data entry/edit. Maybe even form/subform http://office.microsoft.com/en-us/ac...010098674.aspx
    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. Changing table values based on IF statement
    By tylerpickering in forum Queries
    Replies: 6
    Last Post: 04-01-2014, 10:46 AM
  2. Replies: 8
    Last Post: 11-04-2011, 06:52 AM
  3. Replies: 0
    Last Post: 07-26-2011, 02:03 PM
  4. Master list table with changing values.
    By evander in forum Database Design
    Replies: 11
    Last Post: 06-24-2010, 07:40 AM
  5. Replies: 1
    Last Post: 04-14-2010, 08:02 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