Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How is the funtiion DropTable used?

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
US
I forgot how to use the DropTable function. Can someone
help me?

Steve
 
Hi,

Drop Table is an SQL command. The syntax is:

DROP TABLE tablename;

eg

DROP TABLE customers;

John
 
Thanks. Isn't there more to the syntax? If possible, please provide a complete example.

Steve
 
Steve

That's it - all you have to do is wrap it inside a RunSQL or QueryDef statement.

eg
DoCmd.RunSQL "DROP TABLE tablename;"

If this sounds to simple to you, it may be that there was a sub or function created called DropTable, if this is the case though I would need the function prototype/source code for it to work out what it does and how it works.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top