473,377 Members | 1,119 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,377 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 2242
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ifeoma | last post by:
I have a frontend mdb which has tables linked to a backend. When I put a password on the backend, it can't connect at the frontend. How do I get around this? Thanx, Chris
4
by: Chris | last post by:
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...
1
by: Chris | last post by:
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...
3
by: Chris | last post by:
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...
3
by: Tony | last post by:
G'day, With a (Access 2003) database that is split (frontend application and backend datatables) how can I 'pass' a password from the frontend that allows access to the datatables which are...
4
by: Geir Baardsen | last post by:
Hi! 1. I wonder if there is a possibility to open a BackEnd.Db from the opening form, the form e.g.: frmOrders, in the FrontEnd.Db, when the BackEnd.Db is password protected? 2. Do I need to do...
6
by: Mike | last post by:
I have developed a program that has the backend on a server and multiple users have the front end at their individual computers. I know how to set a password on the backend. How can I implement...
3
by: Funky | last post by:
Hi, I have developed an ASP.NET application which has been running in production for around 3 months without any major glitches. Recently, a user was attempting to upload a rather large CSV file...
0
by: vanwout | last post by:
Hello, An ASP page on my IIS server converts an uploaded word document to HTML, but I'm having a problem with it failing (hanging and popup requesting password on server!) on password protected...
6
by: Frank L | last post by:
I have some accounting and tax receipting type applications, developed for charitable and non profit groups, that are exhibiting strange behaviour on a few of the 30 or 40 user machines. When...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.