Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem working with access database that has security setup on it

Status
Not open for further replies.

Paladyr

Programmer
Apr 22, 2001
508
0
0
US
I have a database that whenever you open it, it prompts you for a user name and password. This is a security feature built into Access. Here is the way I am opening the database:

Set dbMaster = OpenDatabase("Networkpath\database97.mdb", , , "User Id=***;Password=***;")
Set dbBackup = OpenDatabase("C:\Backups\Log.mdb", , , "UID=***;PWD=***;")

I know for sure that the login I am using gives me administrative rights on the second database, which is the only one I am trying to work with right now (trying to delete tables:

dbBackup.TableDefs.Delete "customers"
dbBackup.TableDefs.Delete "hardware"
dbBackup.TableDefs.Delete "hospital systems"
dbBackup.TableDefs.Delete "Specialist"

Every time I try this, it says I don't have the necessary permissions so my conclusion is that I am DEFINITELY passing the user id and password incorrectly, since I can't even read the tables when accessing them this way. Can anyone help?
 
Just for curriosity : why doesn't anybody around here use ADO ?
 
Hey, if you know of a way to use ADO and do this, let me know. I use ADO for all my recordset stuff, but haven't seen a way to do it with ADO.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top