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