I'm having a difficult time trying to accomplish a very simple task that is to create a small ASP page using FP that will take the contents of a post and update a DB. Before I can update the DB, I need to connect to the DB and that is the problem - I can't connect.
I'm using what I assume is a standard db call using a non-
DSN based request. Just so you know, the DB defined in FP is NOT defined in ODBC and I'm trying to access via reference.
My code to access:
<%
Dim myConnection
Dim myConnString
Dim GWData
GWData = Server.Mappath("gateway.mdb")
response.write "<p>Value of the gateway DB= " & GWData & "</p>"
set myConnection =server.CreateObject("ADODB.Connection")
myConnection.Open "Data Source=" & Server.Mappath("gateway.mdb") & ";Provider=Microsoft.Jet.OLEDB.4.0;"
%>
Result on the Page:
Value of the gateway DB= D:\Inetpub\webmonitoring\gateway.mdb
Microsoft JET Database Engine error '80004005'
Could not find file 'D:\Inetpub\webmonitoring\gateway.mdb'.
/GWInsertNewSquawk.asp, line 10
Thanks for any and all help, tips, etc.
I'm using what I assume is a standard db call using a non-
DSN based request. Just so you know, the DB defined in FP is NOT defined in ODBC and I'm trying to access via reference.
My code to access:
<%
Dim myConnection
Dim myConnString
Dim GWData
GWData = Server.Mappath("gateway.mdb")
response.write "<p>Value of the gateway DB= " & GWData & "</p>"
set myConnection =server.CreateObject("ADODB.Connection")
myConnection.Open "Data Source=" & Server.Mappath("gateway.mdb") & ";Provider=Microsoft.Jet.OLEDB.4.0;"
%>
Result on the Page:
Value of the gateway DB= D:\Inetpub\webmonitoring\gateway.mdb
Microsoft JET Database Engine error '80004005'
Could not find file 'D:\Inetpub\webmonitoring\gateway.mdb'.
/GWInsertNewSquawk.asp, line 10
Thanks for any and all help, tips, etc.