473,385 Members | 1,769 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,385 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 5981
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. Don't recall the name, but it gave line numbers as...
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 going wrong? Thanks in advance and sorry again...
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 By Company ASC"; }
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 'exec("something.exe");' and, of course the exec function...
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 me, ie HTTP 300 OK, or whatever. Can I do this with...
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 profile info (Name, hobbies etc) and attach an...
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? DELETE FROM manufacturers WHERE manufacturers_id ...
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 statement show below. It says there is a problem with...
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 you looking for an exciting career in the world of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.