G
Guest
I am using the code below to make a new table named with the date and
"Batch". In my sql string it ignores the variable and just names the table
"tmpBatch".
Is there a way to use the variable as the new table name?
tmpBatch = Format(Date, "yyyymmdd")
tmpBatch = tmpBatch & " Batch"
'Makes temp table to store last batch
sql = "SELECT [MOVEX BATCH FILE].* INTO tmpBatch from [MOVEX BATCH FILE]"
DoCmd.RunSQL sql
Thank you.
Cindy
"Batch". In my sql string it ignores the variable and just names the table
"tmpBatch".
Is there a way to use the variable as the new table name?
tmpBatch = Format(Date, "yyyymmdd")
tmpBatch = tmpBatch & " Batch"
'Makes temp table to store last batch
sql = "SELECT [MOVEX BATCH FILE].* INTO tmpBatch from [MOVEX BATCH FILE]"
DoCmd.RunSQL sql
Thank you.
Cindy