J
JRough
I have a perfect vbscript to compact a database but I get password
errors. I try it two ways, with only the database password and with
a developer password/login. Neither works. I don't know if I need to
give permissions to any of the security objects in security with
either of these passwords?
First I try the script using the db pw with the db pw set.
It brings up the normal user level dialogue and I enter the pw/login
for the developer
and it says error " not a valid account and password. Even with the
db pw set it still asks for a user level pw.
offending line of vbscript with database password:
objAccess.DBEngine.CompactDatabase strPathToMDB, strTempDB,
";pwd=Kiyote#3"
So I unset the password and change the script line to run without
that option(see line below)
It brings up a user level pw dialogue and I get the same error
message "not a valid account and password". I
also try this with another admin password/login.
objAccess.DBEngine.CompactDatabase strPathToMDB, strTempDB
Do I have to give the priviledge to run the
vbscript to the database password somehow?
There are only 2 user level passwords known to me. The user does not
remember anything else.
One is admin and the other is developer. The developer password has
the ability to change all objects except the database object. The
admin user has access to all objects except in database object "modify
design".
I should be able to use the
database password to run the script so why does it bring up the user
level password dialogue?
By the way it says source DAO.engine. Does that mean I need to
install some library? i don't really think so I think it is a
security issue but I don't know how to solve it. thnx,
errors. I try it two ways, with only the database password and with
a developer password/login. Neither works. I don't know if I need to
give permissions to any of the security objects in security with
either of these passwords?
First I try the script using the db pw with the db pw set.
It brings up the normal user level dialogue and I enter the pw/login
for the developer
and it says error " not a valid account and password. Even with the
db pw set it still asks for a user level pw.
offending line of vbscript with database password:
objAccess.DBEngine.CompactDatabase strPathToMDB, strTempDB,
";pwd=Kiyote#3"
So I unset the password and change the script line to run without
that option(see line below)
It brings up a user level pw dialogue and I get the same error
message "not a valid account and password". I
also try this with another admin password/login.
objAccess.DBEngine.CompactDatabase strPathToMDB, strTempDB
Do I have to give the priviledge to run the
vbscript to the database password somehow?
There are only 2 user level passwords known to me. The user does not
remember anything else.
One is admin and the other is developer. The developer password has
the ability to change all objects except the database object. The
admin user has access to all objects except in database object "modify
design".
I should be able to use the
database password to run the script so why does it bring up the user
level password dialogue?
By the way it says source DAO.engine. Does that mean I need to
install some library? i don't really think so I think it is a
security issue but I don't know how to solve it. thnx,