S
SUZYQ
I have a database that has tables with current data, and tables that
have history data. The structure of these tables is basically exactly
the same (except for some versioning dates).
Depending on where the record I need to retrieve lies, I may want to
use Table1 or Table1_History.
I'll then write a large SQL statement where I want to be able to use a
variable to hold the correct table's name to return the record to
populate a form.
So, how do I set the table name on the fly via VBA code so that I can
refer to it in the SQL statement?
Thanks!
have history data. The structure of these tables is basically exactly
the same (except for some versioning dates).
Depending on where the record I need to retrieve lies, I may want to
use Table1 or Table1_History.
I'll then write a large SQL statement where I want to be able to use a
variable to hold the correct table's name to return the record to
populate a form.
So, how do I set the table name on the fly via VBA code so that I can
refer to it in the SQL statement?
Thanks!