M
Mei Qin
Hello,
I have a secured database. When I put the following in my
shortcut property Target:
"C:\Program Files\Microsoft
Office\OFFICE\MSACCESS.EXE" "C:\VIDCD\DATA\vid0603.MDB"
/wrkgrp "C:\VIDCD\DATA\VIDCD.MDA"
I can open it after I typied in UserID and Password.
But when I tried to open it in my code:
Dim ws As Workspace
With DBEngine
.SystemDB = "c:\VIDCD\DATA\VIDCD.MDA"
End With
Set ws = DBEngine.CreateWorkspace
("New", "myid", "mypassword")
Set OpenDB = ws.OpenDatabase("c:\vidcd\data\vid0603.mdb")
I got the "Not a valid account Name or password" error at
createWordspace line.
What is the problem?
Thanks for any help!
mei
I have a secured database. When I put the following in my
shortcut property Target:
"C:\Program Files\Microsoft
Office\OFFICE\MSACCESS.EXE" "C:\VIDCD\DATA\vid0603.MDB"
/wrkgrp "C:\VIDCD\DATA\VIDCD.MDA"
I can open it after I typied in UserID and Password.
But when I tried to open it in my code:
Dim ws As Workspace
With DBEngine
.SystemDB = "c:\VIDCD\DATA\VIDCD.MDA"
End With
Set ws = DBEngine.CreateWorkspace
("New", "myid", "mypassword")
Set OpenDB = ws.OpenDatabase("c:\vidcd\data\vid0603.mdb")
I got the "Not a valid account Name or password" error at
createWordspace line.
What is the problem?
Thanks for any help!
mei