delete database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can I have an onform close event that will automatically delete three
different tables after the form closes and possibly delete another database.
 
LOL :-) That's just it. I need the code I'm not sure how to write it. If I
had an example I can re-write it but don't know how to write from scratch.
 
To delete the Table in the current database, use DeleteObject Method.

To delete another database, use the Kill Method to delete the MDB / MDE (I
guess you should use this *with caution*).

Check Access VB Help on the above methods.
 
Van is correct.

Alvin said:
LOL :-) That's just it. I need the code I'm not sure how to write it. If I
had an example I can re-write it but don't know how to write from scratch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top