|
-
Sep 6th, 2000, 04:30 AM
#1
Thread Starter
Conquistador
with an access database, how do i open it if it has a password on it?
-
Sep 6th, 2000, 06:34 AM
#2
Lively Member
Hi,
this code may do the trick:
Set pWorkspace = Workspaces(0)
Set pDatabase = pWorkspace.OpenDataBase(App.path & "\" & pDatabasName, False, False, ";PWD=whatever")
OpenDataBase = True
Mike
-
Sep 6th, 2000, 06:37 AM
#3
da_silvy, again, this uses DAO, but...
Dim DB as database 'need project menu > reference to ms DAO 3.5 library here
Set DB = OpenDatabase("Path&Name_OF-DB_Here.mdb", False, False, ";Pwd=Password_here")
Hope this helps!
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
|