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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to test in macro condition if table exist?

Status
Not open for further replies.

Dan01

Programmer
Jun 14, 2001
439
US
Hi, I wish to drop a table if it exists. How would I write the contitional statement? Thanks, Dan.
 
Never mind guys. I called a function from a macro this way:

Public Function Dropit()
On Error Resume Next
DoCmd.DeleteObject acTable, "TABLEA"
End Function

Thanks, Dan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top