Results 1 to 3 of 3
  1. #1
    tom1978 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    1

    Very simple Q i'm sure...!! Joining similar fields into one

    Hello,

    I have three tables, in each table I have results for chemical tests (lets say phosphate, ammonia and dissolved oxygen).

    One table contains the analytical results from water samples taken from a lake, another from water samples taken from a river, and the third from an estuary. Each sample has a unique ID number, and there are 10 samples for each water category.



    So each table has a field for the ID number, then three further columns for each of the chemical substances.

    I want to create a single table which will have 30 records, with one column for all of the ID numbers, and then the three further columns for the results of the chemical tests.

    At the moment I am joining them together in excel, by copying one below the other, and then having to manually 'shift' (copy + paste) the results from the chemical tests into single columns.

    I'm sure there is a simple way to do this in Access! Any help greatly appreciated.

    Thanks
    Tom

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Have you checked out if UNION queries are of any help?

    Thanks

  3. #3
    jwill is offline Advanced Beginner
    Windows Vista Access 2010 64bit
    Join Date
    Mar 2012
    Location
    MD
    Posts
    67
    I agree you could try a union. Got this off of another site.

    Code:
    select * into table3
    from (select * from table1 union all select * table from table2) as uniontable;
    remember if the new table (represented by "table3") has already been created, it will be deleted first. Proceed w/ caution .

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

Similar Threads

  1. Joining two tables
    By rspai in forum Queries
    Replies: 7
    Last Post: 05-22-2012, 12:21 AM
  2. Replies: 3
    Last Post: 03-26-2012, 01:29 PM
  3. Replies: 3
    Last Post: 02-24-2012, 06:20 PM
  4. Joining 2 fields in query to make one
    By robsworld78 in forum Queries
    Replies: 5
    Last Post: 07-11-2011, 12:06 AM
  5. help with joining SQL statements
    By iamstupid in forum Queries
    Replies: 2
    Last Post: 05-26-2011, 06:55 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