I have a bd with password and i have it in a server, and my users have the program in their own computer.
how can i open the bd with VBA from the program????
i don't want the users have the password.
i have 2 procedure, but i don't know how to use... or where??
Dim dbs As Database
Const conFilePath = "C:\SistDemandas\respaldo\"
' Open database for shared, read/write access, and specify database password.
Set dbs = OpenDatabase(conFilePath & "SistDemandasDatos1010011.mdb", False, False, ";pwd=mongol"
or
Dim wrk As Workspace
Dim dbProtected As Database
Set wrk = DBEngine.Workspaces(0)
Set dbProtected = wrk.OpenDatabase("c:\SistDemandas\respaldo\SistDemandasDatos1010011.mdb", False, False, ";PWD=mongol"
please help me...
thanks...
how can i open the bd with VBA from the program????
i don't want the users have the password.
i have 2 procedure, but i don't know how to use... or where??
Dim dbs As Database
Const conFilePath = "C:\SistDemandas\respaldo\"
' Open database for shared, read/write access, and specify database password.
Set dbs = OpenDatabase(conFilePath & "SistDemandasDatos1010011.mdb", False, False, ";pwd=mongol"
or
Dim wrk As Workspace
Dim dbProtected As Database
Set wrk = DBEngine.Workspaces(0)
Set dbProtected = wrk.OpenDatabase("c:\SistDemandas\respaldo\SistDemandasDatos1010011.mdb", False, False, ";PWD=mongol"
please help me...
thanks...