Results 1 to 3 of 3
  1. #1
    ndcruz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    1

    Smile Merging 2 rows in different table..

    Hi Sir/Ma'am,

    I need some help on how to do this in ms access query.

    I have my 1st table like this table name: tb_1

    Date_1 l Name_1 l Amount_1

    01/01/14 l A l 45.00
    01/01/14 l A l 100.00

    2nd table name : tb_2

    Date_2 l Name_2 l Amount_2



    01/01/14 l B l 50.00
    01/01/14 l B l 105.00


    Now, I want to merge it in Query like this:

    Date l Name l Amount

    01/01/14 l A l 45.00
    01/01/14 l A l 100.00
    01/01/14 l B l 50.00
    01/01/14 l B l 105.00

    Can you help me please...... Thanks...
    Please please please....

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,736
    You need to work with some tutorials on database/table design.

    Try
    Code:
    select Date_1 as [Date],   Name_1 as [Name] , Amount_1 as [Amount] from Tb1
    UNION
    select Date_2 as [Date],   Name_2 as [Name] , Amount_2  as [Amount] from Tb2

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    so the rhetorical question is: why are they in separate tables?.... but the answer to what you seek is to write them into a common table. I don't know if you seek to do this permanently using one of the existing tables as the consolidation table - - or to write them both to a new table. One would use the Append Query in Access.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-10-2014, 10:05 AM
  2. Merging fields in a table
    By Bx Snipe in forum Access
    Replies: 1
    Last Post: 09-24-2012, 01:45 PM
  3. Replies: 1
    Last Post: 05-15-2012, 05:05 PM
  4. Replies: 2
    Last Post: 01-02-2012, 06:46 PM
  5. Merging parts of rows...
    By Aasta in forum Queries
    Replies: 0
    Last Post: 08-21-2011, 09:34 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