K
Kirk
I have a database that contains several tables that all
begin with the same string, but end in a date. For example:
reference_093003
reference_083103
reference_073003
The field layout for each table is identical, the only
variable is the date at the end of each table name (each
table contains the data that was current as of its
respective date). I want to create a query that can look
up the data from whichever table corresponds to a user-
entered date. For example, the user will be prompted
to "Enter Month-End Date:" and based on whether the user
enters 083103 (August 31, 2003) or 073003, the query will
refer to the correct table to retrieve the data. I think
this is possible using an alias, but I haven't been able
to find a solution. Can anyone help?
Thanks!
begin with the same string, but end in a date. For example:
reference_093003
reference_083103
reference_073003
The field layout for each table is identical, the only
variable is the date at the end of each table name (each
table contains the data that was current as of its
respective date). I want to create a query that can look
up the data from whichever table corresponds to a user-
entered date. For example, the user will be prompted
to "Enter Month-End Date:" and based on whether the user
enters 083103 (August 31, 2003) or 073003, the query will
refer to the correct table to retrieve the data. I think
this is possible using an alias, but I haven't been able
to find a solution. Can anyone help?
Thanks!