Union query syntax (Make table)

Gates Is Antichrist

Well-known Member
Joined
Aug 15, 2002
Messages
1,961
This is #$%^#$!! :oops: . I can do a straight make-table by itself, or a select union query, but I can't do both.

select tbl1.* UNION ALL select tbl2.* into foo from tbl1,tbl2;
gives error
"Query input must contain at least one table or query"

Every rearrangement I've tried fails, such as
select * from tbl1 UNION ALL select * from tbl2 into foo;
("Syntax error in FROM clause")

Save me :rolleyes:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
When I first ventured forth into the world that is access, I was told something by an experienced programmer which I have yet to disprove.

SQL & VBA within Access is really a subset implementation (Half Assed was the word used) and doesn't really have all features fully implemented. I'm never surprised when I hear of complaints that seem to be in the same vein.

Me, I'd just go ahead and build them as a two step process and go from there.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,713
Messages
6,161,463
Members
451,708
Latest member
PedroMoss2268

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top