472,108 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,108 software developers and data experts.

Password protected backend problem

I have a frontend that has some tables which are linked to a backend.
Now I want to make the backend password protected and when I try to
run it password protected I can't open it. In the first form that
opens in the front end, I added the following to the form_open event:

Dim cnn As ADODB.connection

Set cnn = New ADODB.connection
cnn.Provider = "Microsoft.Jet.OLEDB.4.0"
cnn.Properties("Data Source") = "C:\backend.mdb"
cnn.Properties("Jet OLEDB:Database Password") = "password"
cnn.Open
Set cnn = Nothing

It seems like it is running the code but not opening up the links or
not keeping the connection open. After I run this code and I click on
one of the linked tables I get the message "Not a valid password". How
can I get it to work as if there was no password on the backend?

Thanx,
Chris
Nov 12 '05 #1
4 2155
CDB
Perhaps?
"Chris" <ch*******@hotmail.com> wrote in message
news:cf**************************@posting.google.c om...
I have a frontend that has some tables which are linked to a backend.
Now I want to make the backend password protected and when I try to
run it password protected I can't open it. In the first form that
opens in the front end, I added the following to the form_open event:

Dim cnn As ADODB.connection
.... Set cnn = Nothing

It seems like it is running the code but not opening up the links or
not keeping the connection open.

Nov 12 '05 #2
Perhaps what?
Nov 12 '05 #3
ch*******@hotmail.com (Chris) wrote in message news:<cf**************************@posting.google. com>...
Perhaps what?


Why password protect the BE? There are MANY utilities that will read
the access file and tell you the password. You cannot really protect
access if someone wants to open it. Password won't slow them down for
long.

An alternative I have used is to put in a procedure that presents a
warning form to the user, logs their Login Name (API) and the time
they attempted to open the backend. The form then has a timer which
closes the form and quits access. While this is not secure it
prevents a user from accidentally opening the file which is all you
can really do.
Nov 12 '05 #4
CDB
I have not yet seen chrisw's response asking "Perhaps what", so attach a
response here.

When cnn is set to nothing, the object is entirely destroyed - how could
anything of it then be seen?

Clive
"dgs5150" <dg*****@yahoo.com> wrote in message
news:52**************************@posting.google.c om...
ch*******@hotmail.com (Chris) wrote in message

news:<cf**************************@posting.google. com>...
Perhaps what?


Why password protect the BE? There are MANY utilities that will read
the access file and tell you the password. You cannot really protect
access if someone wants to open it. Password won't slow them down for
long.

An alternative I have used is to put in a procedure that presents a
warning form to the user, logs their Login Name (API) and the time
they attempted to open the backend. The form then has a timer which
closes the form and quits access. While this is not secure it
prevents a user from accidentally opening the file which is all you
can really do.

Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by ifeoma | last post: by
3 posts views Thread by Tony | last post: by
4 posts views Thread by Geir Baardsen | last post: by
6 posts views Thread by Mike | last post: by
6 posts views Thread by Frank L | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.