Avatar of Gary Croxford
Gary Croxford
Flag for United Kingdom of Great Britain and Northern Ireland asked on

ASP Not a Valid Path - Microsoft JET Database Engine error '80004005'

Thank you for looking at my question,

I am trying to put together an asp page that lists data from an MS Access database query.

The access database resides in a folder on the server.
I have created a virtual directory that points to the folder in which the database resides and yet, when I load the page to the web browser I get the error message

Microsoft JET Database Engine error '80004005'
'K:\Team Leader\Production Planning\Data\LSA Production.mdb' is not a valid path.

Use the two bits of code below to make the connection:


<%
          strconn_ANOD = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &_
          server.mappath("AnodSched/LSA Production.mdb") & ";"
%>

<%
      Set con = Server.CreateObject("ADODB.Connection")
      con.Open strconn_ANOD, "", ""
%>

The problem I have is that K:\Team Leader\Production Planning\Data\LSA Production.mdb is the correct path to the database file I need to interrogate.

Any and all help gratefully received.

ASP

Avatar of undefined
Last Comment
Wayne Barron

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
edlunad

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Wayne Barron

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes