Aug 1, 2005 #1 np3il Programmer Aug 15, 2002 63 US Query Is there a way to read data from more than one table with the same Layouts and append the data as one table? In better words: Merging two tables into another table. Any suggestions are appreciated. Thanks Np3il
Query Is there a way to read data from more than one table with the same Layouts and append the data as one table? In better words: Merging two tables into another table. Any suggestions are appreciated. Thanks Np3il
Aug 1, 2005 1 #2 mp9 Programmer Sep 27, 2002 1,379 GB If you have two tables, tbl1 and tbl2, which are of exactly the saem structure and you want to combine them into 1 new table, tblNew, try this: Code: SELECT * INTO tblNew FROM (SELECT * FROM tbl1 UNION SELECT * FROM tbl2); Hope this helps. http://www22.brinkster.com/accessory/ Upvote 0 Downvote
If you have two tables, tbl1 and tbl2, which are of exactly the saem structure and you want to combine them into 1 new table, tblNew, try this: Code: SELECT * INTO tblNew FROM (SELECT * FROM tbl1 UNION SELECT * FROM tbl2); Hope this helps. http://www22.brinkster.com/accessory/
Aug 1, 2005 #3 Crowley16 Technical User Jan 21, 2004 6,931 GB an append query? or insert select query? -------------------- Procrastinate Now! Upvote 0 Downvote
Aug 1, 2005 Thread starter #4 np3il Programmer Aug 15, 2002 63 US The code put it in prespective but: Is there a way to do this in MS-Access | Query? Thanks np3il Upvote 0 Downvote
Aug 1, 2005 1 #5 lespaul Programmer Feb 4, 2002 7,083 US switch to the SQL view of a query, paste the SQL, modify to the correct table names, run the query. You'll need this modified SQL probably: SELECT A.* INTO tblNew FROM (SELECT * FROM tbl1 UNION SELECT * FROM tbl2) As A; Leslie Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual Upvote 0 Downvote
switch to the SQL view of a query, paste the SQL, modify to the correct table names, run the query. You'll need this modified SQL probably: SELECT A.* INTO tblNew FROM (SELECT * FROM tbl1 UNION SELECT * FROM tbl2) As A; Leslie Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
Aug 2, 2005 Thread starter #6 np3il Programmer Aug 15, 2002 63 US Thanks for the suggestions it worked very well. Best Regards np3il Upvote 0 Downvote