Results 1 to 2 of 2
  1. #1
    BioHazard is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    1

    Append Data from two tables

    Hi Folks,

    I spend now more time than I would like with this trouble:

    I would like to append a number of data from two tables to a third one. From table1 the primary key field should be selected as maximum entry. From table2 the primary key field should be assigned as group.



    Before trying in append mode I tested the query in selection mode:

    This results in tuples of all entries from table2 together with the maximum entry from table1. Both tables also contain identical fields (which represent foreign keys to a third - different - table). When relating these fields in the query, the number of tuples get reduced to all entries relating to the specific field in table2, which actually should be fine.

    Unless, no tuple should be expected, since the maximum entry primary key from table1 does not appear in table2 with the associated foreign key!!!

    I'm more than confident that the reason for this problem is presumably of simple nature.

    Can anyone help? Thanks in advance!

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    I am not able to understand your post. A primary key field will never have duplicates, thus one would not apply an aggregate maximum method to it - as that would only result in the 1 highest value. So it is not clear what field is being found as a maximum.

    But in any case once you have isolated the correct record set of Table 1 using Query 1 ; then joining Query 1 to table 2 would of course result in all records of table 2 that have a matching key value. Whether or not there are duplicates (tuples?) depends on whether they exist as duplicates in table 2

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

Similar Threads

  1. append to one table using multiple tables
    By tagteam in forum Access
    Replies: 2
    Last Post: 06-27-2015, 07:29 AM
  2. Append 2 linked tables together
    By sdc1234 in forum Access
    Replies: 1
    Last Post: 05-16-2014, 08:57 AM
  3. Append query using two unrelated tables
    By maggiemago3 in forum Access
    Replies: 1
    Last Post: 09-07-2013, 09:55 PM
  4. Append Query Using 2 Tables
    By burrina in forum Forms
    Replies: 2
    Last Post: 12-27-2012, 05:24 PM
  5. Append to multiple tables
    By GraemeG in forum Queries
    Replies: 1
    Last Post: 04-05-2012, 11:42 AM

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