G
Guest
I am trying:
Dim DBName, NewDBName as String
DBName = "C:\Files\ExampleFile.mdb"
NewDBName = "C:\Files\NewFile.mdb"
DBEngine.CompactDatabase DBName, NewDBName
but the DBName file has a password and therefore I keep getting an error
message, "Not a valid password". The password is "accessgranted"
How do I code this so it will proceed with the compact.
Thank you for you help.
Steven
Dim DBName, NewDBName as String
DBName = "C:\Files\ExampleFile.mdb"
NewDBName = "C:\Files\NewFile.mdb"
DBEngine.CompactDatabase DBName, NewDBName
but the DBName file has a password and therefore I keep getting an error
message, "Not a valid password". The password is "accessgranted"
How do I code this so it will proceed with the compact.
Thank you for you help.
Steven