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

Make Table Query w/ User defined table name

Status
Not open for further replies.

joethehoe

Technical User
Jan 2, 2002
27
US
Question for the Access GODS??

What's the proper(syntax)for a make table query where the data base asks the user to input name of the new table??

SELECT [IS USED FOR MAKE TABLE QUERY].*, * INTO [???enter table name???]
FROM [IS USED FOR MAKE TABLE QUERY];

Thanks Jason.G
 
I doubt this can be done. You could run code that would modify the SQL of the maketable query.

Duane
MS Access MVP
 
Hi dhookom,

Then how about just the current date??
 
I don't think there is any way to make the table name variable. You may need to change the sql of the saved query.

Duane
MS Access MVP
 
Thanks for the responce on this:)

What about a macro??
1. open and run make table query.
2. rename to ???cd date()?? doesnt allow me to build in the new name field???
 
I'm not sure what your question is. You could rename the table after running the make table query. Is there a reason you are attempting to do all of this? Saving similar structured tables with different names is a bit unusual.

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top