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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking tables from a password secured database

Status
Not open for further replies.

DavidMurray

Programmer
Aug 13, 2002
2
US
I have a database application named interco with 2 tables named a and b. This database is secured with a password. In another database application, I link to tables a and b. I have been noticing that when using a macro to delete and relink the tables the application will ask for a password and then not link the tables. When I take off the password on the first database application the tables link in. Does any one have any ideas why this is happening and how I can get around this issue? The first database must be secured.

Thanks in advance to everyone.
 
Here is a method I've used in the past... to update a table within a password protected database.

Dim db1 As DAO.Database
lcSQL = "Update RunDate Set RunDate = #" & Me.RunDate.Value & "#"
Set db1 = DBEngine.OpenDatabase(Me.DBNameLoc, False, False, "MS Access;PWD=passwordhere") 'Note Password Hard-Coded!
db1.Execute lcSQL, dbFailOnError
db1.Close



Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top