I have a form which has been based on a table. I want the table to be created when I open a form and then I want to be able to delete the table programmatically at some point during an access session.
The why's and wherefores of this are that I cannot get the data I want from a query. I've tried writting queries to do it and i just can't get exactly the right data in the right format without using a temporary table.
When I try to delete the table using the onclose event I get an error saying that the table is locked by a user or process. I can understand this because the form is still open.
So I tried opening a new form from the onclose event which remains hidden. I the put the delete table code on the onopen event for the hidden form but it still won't let me delete the table I get the same error.
How can I do this?
Thanks for any assistance.
The why's and wherefores of this are that I cannot get the data I want from a query. I've tried writting queries to do it and i just can't get exactly the right data in the right format without using a temporary table.
When I try to delete the table using the onclose event I get an error saying that the table is locked by a user or process. I can understand this because the form is still open.
So I tried opening a new form from the onclose event which remains hidden. I the put the delete table code on the onopen event for the hidden form but it still won't let me delete the table I get the same error.
How can I do this?
Thanks for any assistance.