472,353 Members | 1,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

How to re-provide password to encrypted linked tables?

I am building an Access 2002 frontend with linked tables to an
encrypted Paradox 7 database. When I first create these linked tables,
I'm asked for the password to the encrypted Paradox database, and the
linked tables are successfully created. I use the data from these
linked tables in several forms.

All works great until I close the Access frontend and open it again.
When I try to use the forms, I get an error message: "Could not decrypt
file." I know that this is because I need to supply the password again
to access the linked tables.

<growling noises> Why doesn't Access just give me a nice little popup
requesting the password like it did the first time I linked the tables?
How can I get Access to give me the chance to type in the password
again so that the linked tables will work?

Or can I somehow pass the password to Access behind the scenes the
first time the user opens a form? Or maybe can I get Access to save the
password from the initial linking so that it's not needed everytime the
frontend is opened?

Note: I'm not connecting to the encrypted database via ODBC (I don't
have the ODBC drivers for Paradox 7). I'm able to initially link the
database tables (read-only) by just browsing to the folder and
providing the password.

I got this database project dropped in my lap when a 'higher paid'
quit. It's a bit over my head, I admit, but I'm pretty tenacious! I'll
very much appreciate any help and advice you all might have to offer.
Thank you, Jill Elaine

Nov 13 '05 #1
2 5851
That noise you hear is me pounding my head against the wall and
wailing, "Why? Why? Why?"

You'd think I'd be celebrating because I've actually fixed the problem
BUT the "fix" (really a workaround) is so MSconvoluted that I think
I'll lose my lunch.

The fix: I already had JET 4 (and Office XP SP3 btw) but I installed
JET SP8 for Windows 2000. I am NOT sure if this really did anything,
but I need to mention it anyway, just in case.

First I deleted all the linked tables to the encrypted Paradox database
that I had previously created.

Then I discovered that I could get the linked tables to work correctly
_IF_ I was asked for the Paradox password when I created the linked
table.

__I had to be sure I was asked for the Paradox password *FOR EACH*
linked table I created!__

If I followed the procedure below, I could close and reopen the Access
database and the linked Paradox tables would open without any errors
(and without requesting the Paradox password).

So, my procedure: I had to open the Access database, create one new
linked table, provide the Paradox password, close the Access database,
open it up again, create the next new linked table, provide the Paradox
password, close the Access database (reiterate until all encrypted
Paradox tables show up as linked tables in Access).

IF I was not asked for the Paradox password when I linked a particular
table, upon first opening Access, that table would throw the error,
"Could not decrypt file", if I tried to open that table before I opened
any "password linked" (for lack of a better term) Paradox tables.
("Password linked" = provided password when creating the link)

Access will allow you to create many linked tables to an encrypted
database at one time, while asking for the password for only the
_FIRST_ linked table you create. The first linked table will be the
only 'password linked' one. Access *appears* to successfully create the
links to the other tables in the encrypted database after you provide
the password for the first link you create, but only the FIRST table
(apparently) is associated with the required password!

This can be very confusing as, if you open the "password linked" table
first, the "non-password linked" tables will open afterwards, but if
you try to open a "non-password linked" table (when you first open
Access), you'll receive the error "Could not decrypt file".

Further information: this issue of "password and non-password linked"
tables (to an encrypted database) is associated with the error message
"Application-defined or object-defined error" when running the Linked
Table Manager in Access. If you try to update a "non-password linked"
table (and no "password linked" tables have been opened or accessed),
LTM throws that error.

I had a mix of "password and non-password linked" tables in my Access
database, which meant that sometimes the linked tables would work and
sometimes I'd get errors, depending on which linked table I first
accessed! What a nightmare to solve! I found so many related questions
in numerous Access forums...and no documentation on MS Knowledge Base.
Hopefully this 'workaround' will help others with the same problem I
had.

Had to answer my own question! :-)
Jill Elaine

Nov 13 '05 #2
Hi Jill,

It may be a generic assumption in Jet. Jet .mdb and ODBC connections to
say Oracle assume that there is one username/password into a set of
database tables within the same security container. Maybe Jet does this
for Paradox tables as well even though we know that Paradox tables are
exist as physically separate entities on the file system.

Ananda

Jill Elaine wrote:
That noise you hear is me pounding my head against the wall and
wailing, "Why? Why? Why?"

You'd think I'd be celebrating because I've actually fixed the problem
BUT the "fix" (really a workaround) is so MSconvoluted that I think
I'll lose my lunch.

The fix: I already had JET 4 (and Office XP SP3 btw) but I installed
JET SP8 for Windows 2000. I am NOT sure if this really did anything,
but I need to mention it anyway, just in case.

First I deleted all the linked tables to the encrypted Paradox database
that I had previously created.

Then I discovered that I could get the linked tables to work correctly
_IF_ I was asked for the Paradox password when I created the linked
table.

__I had to be sure I was asked for the Paradox password *FOR EACH*
linked table I created!__

If I followed the procedure below, I could close and reopen the Access
database and the linked Paradox tables would open without any errors
(and without requesting the Paradox password).

So, my procedure: I had to open the Access database, create one new
linked table, provide the Paradox password, close the Access database,
open it up again, create the next new linked table, provide the Paradox
password, close the Access database (reiterate until all encrypted
Paradox tables show up as linked tables in Access).

IF I was not asked for the Paradox password when I linked a particular
table, upon first opening Access, that table would throw the error,
"Could not decrypt file", if I tried to open that table before I opened
any "password linked" (for lack of a better term) Paradox tables.
("Password linked" = provided password when creating the link)

Access will allow you to create many linked tables to an encrypted
database at one time, while asking for the password for only the
_FIRST_ linked table you create. The first linked table will be the
only 'password linked' one. Access *appears* to successfully create the
links to the other tables in the encrypted database after you provide
the password for the first link you create, but only the FIRST table
(apparently) is associated with the required password!

This can be very confusing as, if you open the "password linked" table
first, the "non-password linked" tables will open afterwards, but if
you try to open a "non-password linked" table (when you first open
Access), you'll receive the error "Could not decrypt file".

Further information: this issue of "password and non-password linked"
tables (to an encrypted database) is associated with the error message
"Application-defined or object-defined error" when running the Linked
Table Manager in Access. If you try to update a "non-password linked"
table (and no "password linked" tables have been opened or accessed),
LTM throws that error.

I had a mix of "password and non-password linked" tables in my Access
database, which meant that sometimes the linked tables would work and
sometimes I'd get errors, depending on which linked table I first
accessed! What a nightmare to solve! I found so many related questions
in numerous Access forums...and no documentation on MS Knowledge Base.
Hopefully this 'workaround' will help others with the same problem I
had.

Had to answer my own question! :-)
Jill Elaine

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used....
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order...
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to...
10
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? ...
3
by: presspley | last post by:
I have bought the book on advanced dreamweaver and PHP recently. I have installed MySQL and PHP server but am getting an error on the $GET...
2
by: sky2070 | last post by:
i have two file with jobapp.html calling jobapp_action.php <HTML> <!-- jobapp.html --> <BODY> <H1>Phop's Bicycles Job Application</H1> <P>Are...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

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.