A Alistair Guest Feb 21, 2001 #1 I wish to run a query and save the results to a new table with a specfic name using a macro.
R rglman Registered User. Local time Today, 13:55 Joined Jul 11, 2005 Messages 30 Feb 12, 2007 #2 Can a maketable query generate the output table name dynamically? Is it possible to have a maketable query that generates the table name dynamically? The example would be something like this: SELECT qryComp.EmplID, qryComp.EmplName, qryComp.MgrName INTO [=tblMyNewTable & " " & Date()] FROM qryComp; So that, if it worked, the output file would be named: "tblMyNewTable 02/12/2007". The syntax above gives me a table named: "=tblMyNewTable & " " & Date()" Thanks in advance for some help with this!
Can a maketable query generate the output table name dynamically? Is it possible to have a maketable query that generates the table name dynamically? The example would be something like this: SELECT qryComp.EmplID, qryComp.EmplName, qryComp.MgrName INTO [=tblMyNewTable & " " & Date()] FROM qryComp; So that, if it worked, the output file would be named: "tblMyNewTable 02/12/2007". The syntax above gives me a table named: "=tblMyNewTable & " " & Date()" Thanks in advance for some help with this!