I have to Open and Close a database from another database so that the Compact On Close Option will execute. I have tried
Dim MyDb as DAO.Database
Set MyDb = OpenDatabase(“PathToDb”)
MyDb.Close
which doesn’t do it.
I have tried opening the file using the Shell Function and that opens it fine, but I can’t close it. Anyone know how I would close the db after opening it using the Shell Function. Or anyother ideas.
Thanks
Paul
-
Closing a second database (A2000)
- This topic has 2 replies, 2 voices, and was last updated 23 years, 4 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads