I want to open another MDB database with BOTH database password and workgroup user level security enabled without prompting user to login and input a database password. My solution at this moment is to open it with the shell command to bypass the login prompt then use SendKeys functions to provide the database password. Is there a better approach instead of using SendKeys in setting up the database password. Any suggestions are welcome. Thank you. AGL
Code:
Function OpenAccess(bolSet As Boolean)
Dim x As Variant
x = Shell(GetAccessExe & " " & Chr(34) & GetPath & Chr(34) & " /nostartup /user " & GetWorkspaceUser(bolSet) & _
" /pwd " & GetWorkspacePassword(bolSet) & " /wrkgrp " & Chr(34) & GetSecurity & Chr(34), vbMaximizedFocus)
GetSecurityPassword 'SendKeys Function
End Function
Comment