A
Author
Several users need to view a report. Originally the report ran a five-minute
query each time it was opened, so to save time I designed a Make-table query
to write data to a table. The query filters data, overwrites the table, and
repeats itself. The problem is, when someone has a report open and the query
attempts to overwrite the table, I get:
Runtime Error 3009
You tried to lock table 'NewData' while opening it, but the table cannot be
locked because it is currently in use. Wait a moment, and then try the
operation again.
And the VBA code halts. This is a problem, as each user who runs the report
will be viewing data from a common table. If I coded the report itself to
run the Make-Table query, it would work. But only if one user at a time had
the report open. I'm stuck.. Help?
Using Access 2003
query each time it was opened, so to save time I designed a Make-table query
to write data to a table. The query filters data, overwrites the table, and
repeats itself. The problem is, when someone has a report open and the query
attempts to overwrite the table, I get:
Runtime Error 3009
You tried to lock table 'NewData' while opening it, but the table cannot be
locked because it is currently in use. Wait a moment, and then try the
operation again.
And the VBA code halts. This is a problem, as each user who runs the report
will be viewing data from a common table. If I coded the report itself to
run the Make-Table query, it would work. But only if one user at a time had
the report open. I'm stuck.. Help?
Using Access 2003