Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining three tables into one

Status
Not open for further replies.

Tarbuza

Technical User
Dec 13, 2000
56
US
I get an email with three access tables namely temp1, temp2 and temp3. Is there a way that I can automate that it should combine three tables into one called temp.

Thanks for any help.
 
If you have the table temp already created, you can do something like this:

INSERT INTO temp4
SELECT temp1.*, temp2.*, temp3.*, *
FROM temp1, temp2, temp3;

put that into a new query in SQL view, save it, then run it, but be carefull, you may need to modifiy the statement to avoid duplicates, I would also backup the data you have to make sure it runs the way you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top