delete database

A

Alvin

how can I have an onform close event that will automatically delete three
different tables after the form closes and possibly delete another database.
 
A

Alvin

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.
 
V

Van T. Dinh

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.
 
K

Klatuu

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.
 
Top