I have built a database around a main form from which all other things are accessed. On the form there are some command buttons for reports etc, and some combo boxes used to find records quickly within the database.
This form is called up at the database start up. However to run on of the combo boxes I needed to build a new table from data within three other tables and then run a query on that table to get the combo to work.
What I wanted to do was to delete the table at database start and then rebuild it. (to save system resources)
So using the onload event I wrote some code to delete the table followed by some more code to run the queries followed by more code to run a make table query. However it cannot delete the table because i get the error message telling me that some user or process is using the table. (there are at the moment no other users)
I then tried moving the table delete procedure to the onexit event for the form after the code to close the form and it still wont delete the table (it gives the same error). I thought that the procedure was running to quick for my hardware and put a delay of up to 30 seconds in but still no joy.
Can anyone shed any light on where i am, or what is going wrong.
TIA.
This form is called up at the database start up. However to run on of the combo boxes I needed to build a new table from data within three other tables and then run a query on that table to get the combo to work.
What I wanted to do was to delete the table at database start and then rebuild it. (to save system resources)
So using the onload event I wrote some code to delete the table followed by some more code to run the queries followed by more code to run a make table query. However it cannot delete the table because i get the error message telling me that some user or process is using the table. (there are at the moment no other users)
I then tried moving the table delete procedure to the onexit event for the form after the code to close the form and it still wont delete the table (it gives the same error). I thought that the procedure was running to quick for my hardware and put a delay of up to 30 seconds in but still no joy.
Can anyone shed any light on where i am, or what is going wrong.
TIA.