dbTalk Databases Forums  

Re: Access 97. Can you delete (remove) a complete table with an instruction in VB code? TIA...

comp.database.ms-access comp.database.ms-access


Discuss Re: Access 97. Can you delete (remove) a complete table with an instruction in VB code? TIA... in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John
 
Posts: n/a

Default Re: Access 97. Can you delete (remove) a complete table with an instruction in VB code? TIA... - 10-28-2003 , 12:42 AM






DoCmd.DeleteObject acTable, "tblName"

will delete the table. if you want to save the structure but delete
the records use SQL:

DELETE * FROM tblName;

-john

Kirk McMillan <removethis.kirkm (AT) xtra (DOT) co.nz.removethistoo> wrote


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.