Dear George,
If I choose your way,there’s still a problem I want to trun to you for help.
As I named two tables with table current and table previous.I do many
queries with them,I also saved those queries.And those queries are not all
generated from the 2 tables,some are generated from the queries.
When the next period comes,I replaced the table previous with the data of
table current,and downloading the table current.When I tried to re-use these
queries, because some queries depend on other queries.What’s the
opening-sequence for these queries to make sure the queries use the correct
data source?Will open all these queries avoid the open queries turn by turn
problem?
Best regards.
George Nicholson said:
Your data structure could probably be improved, but working with what you
have:
Consider creating 2 queries (qryCurrentM, qryPriorM) that are simply copies
of February and March. Then change your more complex monthly queries so that
they are based on qryCurrentM and qryPriorM.
Then, when a new month rolls around you can change where qryCurrentM and
qryPriorM are pointing in about 30 seconds and run the related queries.
Or, is it possible to give the tables generic names that can be changed?
(tblLastMonth, tblCurrentMonth, tblNextMonth). Name AutoCorrect should
definetly be off if you go this route, if it isn't already.
--
HTH,
George
Dear George,
If I choose your way,there’s still a problem I want to trun to you for help.
As I named two tables with table current and table previous.I do many
queries with them,I also saved those queries.And those queries are not all
generated from the 2 tables,some are generated from the queries.
When the next period comes,I replaced the table previous with the data of
table current,and downloading the table current.When I tried to re-use these
queries, because some queries depend on other queries.What’s the
opening-sequence for these queries to make sure the queries use the correct
data source?Will open all these queries avoid the open queries turn by turn
problem?
Best regards.