|
-
April 24th, 2002, 10:21 AM
#1
DAO password protected Access database
Hi,
how can i connect to an Access database that has a password on it
When i use opendatabase("<Mypath>",,,"pwd=<MyPassword>") it says that my password is incorrect (and i'm sure it is not.
PS i know how to do this with ado, but it is a program that is already written and now we have to change it so the database has a password on it.
Thanx
-
April 24th, 2002, 10:47 AM
#2
Re: DAO password protected Access database
Tell me the code. I would like to know whether u want to do this in VB/ASP
-
April 24th, 2002, 11:42 AM
#3
Re: DAO password protected Access database
Here is some old DAO code I came across. Try it out.
Dim ws as Workspace
Dim db as Database
' Open workspace, database, recordset
set ws = DBEngine.Workspaces(0)
' Password protected
set db = ws.OpenDatabase("DatabasePath", false, false, "MS Access;pwd=password")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|