RayH
Registered User.
- Local time
- Today, 06:57
- Joined
- Jun 24, 2003
- Messages
- 132
I have a set of queries to gather data from some tables and create a new temporary table that is used as a recordsource for a form.
Once the form is closed the data gathered is appended to another table.
Ok, this may not be the best method but it works.
My problem is that once the data has been appended I want to remove the temporary table but always get a message saying that the object is locked or process by another user.
I have tried the following:
set the recordsource= "" for the form
then
DoCmd.Runsql "drop tmp_table;"
or
DoCmd.DeleteObject acTable, tmp_table
I still get the message if I run these commands on another form once the orignal form has been closed.
These are the recommended methods from Microsoft themselves according to the knowledge base.
Where am I going wrong?
Why does the table remain locked once the form has been close?
Thank you
Once the form is closed the data gathered is appended to another table.
Ok, this may not be the best method but it works.
My problem is that once the data has been appended I want to remove the temporary table but always get a message saying that the object is locked or process by another user.
I have tried the following:
set the recordsource= "" for the form
then
DoCmd.Runsql "drop tmp_table;"
or
DoCmd.DeleteObject acTable, tmp_table
I still get the message if I run these commands on another form once the orignal form has been closed.
These are the recommended methods from Microsoft themselves according to the knowledge base.
Where am I going wrong?
Why does the table remain locked once the form has been close?
Thank you