|
-
November 30th, 1999, 01:58 PM
#1
Delete table in Access Database
How can I delete table in Access Database?
I try with this:
Dim dbsNew As Database
Dim wrkDefault As Workspace
Dim td As TableDef
Set dbsNew = OpenConnection("c:\Windows\Temp\MarteleurVirtuel.mdb")
Set wrkDefault = DBEngine.Workspaces(0)
td.Name = "Position ha"
dbsNew.TableDefs.Delete td
But it was not a success. I recive an error at the last line: ("Type mismatch")
Has anyone can help me?
Thanks!
Redg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|