Forum Moderators: open
<%
Dim MM_conn_Core_STRING
MM_conn_Core_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("..\db\someDB.mdb")
%>
I used this connection in a page above this folder to create a recordset and to display some dynamic data but when viewing on my localhost it says the path to the db is invalid.
So if I change the connection to:
Dim MM_conn_Core_STRING
MM_conn_Core_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("db\someDB.mdb")
%>
Then it works in the browser but then my connection is not succesful in dreamweaver.
So here is the setup:
page.asp
Connections/connect.asp (Created by Dreamweaver when setting up connection)
db/someDB.mdb
So how do I get this path to work so it satisfies both dreamweaver and the browser?