Results 1 to 3 of 3
  1. #1
    cafirf is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    10

    Create columns in a query based on 3 columns in the parent table that share the same child table

    Hi Guys,

    The question seem to be confusing but it is quite simple. I am creating a a query from a parent table that contains a list of wines. Part of the columns are based on the child table references. 3 of these columns in the query are the wine vintage (the year it was produced), the year that the wine is good to drink and the year it matures. Given that these 3 columns have the same type of information "year" I created a child table with the year. the problem is that, when I create a query, if I add the child table "year" to the query, I donīt know how to make access show the information I want. Basically I need access to show 1 column for the wine vinage, other for the year that the wine matures and the last should be the year that the wine is good to drink. Since access records the key into the parent table and I want to see the year , how can I make access show the "year" instead of the "Primary Key" for each of these columns?
    Click image for larger version. 

Name:	Capturar.PNG 
Views:	10 
Size:	14.8 KB 
ID:	22492

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    You have 3 fields for a year value? I would not save ID, I would eliminate the ID from Ano and just save the year.

    Otherwise, have to include the Ano table in the query 3 times.
    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
    cafirf is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    10
    Thank you June7.

    I changed the child table and removed the ID as you explained and it is working.

    Regads,
    Cafi

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

Similar Threads

  1. Replies: 1
    Last Post: 03-26-2015, 10:59 AM
  2. Replies: 2
    Last Post: 10-07-2013, 11:01 AM
  3. Replies: 3
    Last Post: 07-03-2013, 01:20 PM
  4. Replies: 3
    Last Post: 08-09-2012, 01:49 PM
  5. Replies: 10
    Last Post: 01-17-2011, 10:47 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