When creating a make table query, is it possible to add a parameter value to
the naming syntax in the make table name?
Thanks
Do you mean have the query prompt for the name of the table to make
after the query has already been created?
No, I don't think so.
However, no reason why you can't do it using RunSQL
Dim strTableName as String
strTablename = InputBox("Name of the new table")
DoCmd.RunSQL "Select YourTable.* Into " & strTableName & " From
YourTable;"
or CurrentDb.Execute,
Dim strTableName as String
strTablename = InputBox("Name of the new table")
CurrentDb.Execute "Select YourTable.* Into " & strTableName & " From
YourTable;",dbFailOnError
or even just run the query using the existing table name and then
renaming the table in code:
DoCmdOpenQuery "YourMakeTableQuery"
Dim strTablename as String
strTableName = InputBox("Name of the new Table")
DoCmd.Rename strNewTable , acTable, "OriginalTablename"