Stephanpls
New member
- Local time
- Today, 17:48
- Joined
- Dec 28, 2008
- Messages
- 8
I want to delete a table X in a database Y while the current database is another one. What I do is:
**
Dim Dbase as Database
Set DBase = OpenDatabase("Y.mdb")
DoCmd.DeleteObject acTable, "X"
**
There is a message then that table X is not found (though it exists!). I think Docmd only works in the current database. How to delete a table in another database?
Thanks!
**
Dim Dbase as Database
Set DBase = OpenDatabase("Y.mdb")
DoCmd.DeleteObject acTable, "X"
**
There is a message then that table X is not found (though it exists!). I think Docmd only works in the current database. How to delete a table in another database?
Thanks!