Hi Alex.
This piece of code works but only as long as you are in side of the function
after the Set dbProtected. I need code that keeps the secure database open
until the front-end is closed.
Public Function Connect()
Dim wrk As Workspace
Dim dbProtected As Database
Set wrk = DBEngine.Workspaces(0)
Set dbProtected = [wrk].OpenDatabase("C:\Database\Secure.mdb", False,
False, ";PWD=password")
End Function
Greetings,
Ronald.
"Alex Dybenko" wrote:
> You have to add password to connection:
>
> tdf.Connect = ";DATABASE=mydb.mdb;PWD=mypassword"
>
> --
> Alex Dybenko (MVP)
> http://Alex.Dybenko.com
> http://www.PointLtd.com
>
>
>
> "Ronald" <(E-Mail Removed)> wrote in message
> news:55533754-5399-4FA2-88B5-(E-Mail Removed)...
> > How can I connect a secure back-end database from a non-secure front-end
> > database? I just cannot find the answer in the knowledge base.
> > Thanks in advance.
>
>
>