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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt Table Name from Make Table Query

Status
Not open for further replies.

gall3on

Technical User
Mar 15, 2007
35
US
I was wondering if there was a way to prompt for a Table name when using a Make Table Query.

I'm basically combining two tables but I want to be able to name that table dynamically as I generate it instead of having to define it beforehand.

Below is my code:
SELECT SourceCodeSearchTable.[Offer Name],
[Matrix+Offer Table].OFFERID,
[Matrix+Offer Table].[Consumer Source Code],
[Matrix+Offer Table].CID,
[Matrix+Offer Table].[BT Offer Code]

INTO [Enter Source Code Table Name]

FROM [Matrix+Offer Table] LEFT JOIN SourceCodeSearchTable ON [Matrix+Offer Table].OFFERID = SourceCodeSearchTable.[New Offer ID];

Thanks!
 
You can do this with VBA, but I do not think that it is possible with Jet SQL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top