P
Paul
I am trying to protect my backend database by adding a
password to it and then issuing the Opendatabase method
using the password to re-link the tables. I am getting an
error message Invalid password using the code below. This
seems to follow the format as outlined in the
documentation but I must be doing something wrong. ANy
help would be greatly appreciated!
Public Function Relinktables(strFilename As String)
Dim dbbackend As DAO.Database, dblocal As DAO.Database, ws
As Workspace, x, y
Dim tdlocal As DAO.TableDef
On Error GoTo Err_Relink
Set dbbackend = DBEngine(0).OpenDatabase
(strFilename, , , "; pwd=abc")
password to it and then issuing the Opendatabase method
using the password to re-link the tables. I am getting an
error message Invalid password using the code below. This
seems to follow the format as outlined in the
documentation but I must be doing something wrong. ANy
help would be greatly appreciated!
Public Function Relinktables(strFilename As String)
Dim dbbackend As DAO.Database, dblocal As DAO.Database, ws
As Workspace, x, y
Dim tdlocal As DAO.TableDef
On Error GoTo Err_Relink
Set dbbackend = DBEngine(0).OpenDatabase
(strFilename, , , "; pwd=abc")