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

Deleting tables

Status
Not open for further replies.

Darci

IS-IT--Management
Jul 23, 2002
37
US
Hi,

I am trying to write a function that will open a database from a database and delete certain tables on a click event. In other words, I am working from a form in database A, and on that form is a button that I can click to delete a table in Database B. Any suggestions?

Thanks in advance
 
Something like this (in DAO):

Set Db_External = Workspaces.Open targetDb

For i = 0 to Ubound(ArrayofTableNames())

Db.Tdfs.Delete ArrayofTableNames(i)

Next

Jeff Roberts
Analysis, Design, & Implementation
RenaissanceData.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top