P
Phil
Hi,
I have 2 forms (A and B). There is a button in Form A to
open form B based on the job ID. Both form A and B are
generated from 2 different tables (A and B). After the
user finishes and closes the form B, I would like to have
Access automatically delete the table B. I put a code to
delete the table B on the Close event of form B but it did
not work because of the table B is in use. My guess is
that I need to close the form B completely in order to
unlock the table B and then I can delete the table B.
However, I have no idea how to trigger the delete action
after the form B is completely closed.
Which form and event should I put my code to close the
form B and delete the table B?
Thank you.
I have 2 forms (A and B). There is a button in Form A to
open form B based on the job ID. Both form A and B are
generated from 2 different tables (A and B). After the
user finishes and closes the form B, I would like to have
Access automatically delete the table B. I put a code to
delete the table B on the Close event of form B but it did
not work because of the table B is in use. My guess is
that I need to close the form B completely in order to
unlock the table B and then I can delete the table B.
However, I have no idea how to trigger the delete action
after the form B is completely closed.
Which form and event should I put my code to close the
form B and delete the table B?
Thank you.