ASP, Access & Link Table Password

C

Colin Steadman

I've written an online survey in ASP using Access as the
db. To get the results and some data about the user I've
written a simple select query in Access and saved it
as 'QRY_GET_RESULTS'. 'QRY_GET_RESULTS' uses two tables:-
TBL_RESULTS (Access) and TBL_DIRECTORY (link table to our
directory server). The QRY_GET_RESULTS query works great
in Access when I've supplied the directory server password.

And it should mean that I can connect to the Access db
from ASP and run 'select * from QRY_GET_RESULTS'. However
when I do this I get the following error:

Microsoft JET Database Engine error '80004005'

ODBC--connection to 'directory_db' failed.

/isebsurvey/dev/view_results.asp, line 32


Line 32 is:

rs.Open Join(arSQL, " "),cn


I think this is happening because I need to also supply
the directory server password in the connection string,
but I'm not sure how to go about this. At the moment it
looks like this:

"Provider=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
Server.MapPath("survey.mdb")

Could anyone tell me what I'm missing?

Thanks,

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top