How do you set a DB variable to an open Database
that has its own workgroup file without getting any errors?
For example:
If 'C:\Temp\Temp.mdb' is a secured DB and has its
own workgroup file called 'C:\Temp\WKS_Temp.mdw' -
is it possible to maybe pass the Workgroup filename
with a username and password when you set a reference
to the database?
eg:
Dim DB As Database
Set DB = OpenDatabase("C:\tmp\Temp.mdb /wrkgrp " & _
C:\tmp\WKS_Temp.mdw", , , "UID=Read;PWD=me"
Debug.Print DB.TableDefs.Count
Set DB = Nothing
* This does not work!
Can someone please help!!!???!!!
that has its own workgroup file without getting any errors?
For example:
If 'C:\Temp\Temp.mdb' is a secured DB and has its
own workgroup file called 'C:\Temp\WKS_Temp.mdw' -
is it possible to maybe pass the Workgroup filename
with a username and password when you set a reference
to the database?
eg:
Dim DB As Database
Set DB = OpenDatabase("C:\tmp\Temp.mdb /wrkgrp " & _
C:\tmp\WKS_Temp.mdw", , , "UID=Read;PWD=me"
Debug.Print DB.TableDefs.Count
Set DB = Nothing
* This does not work!
Can someone please help!!!???!!!