I am getting the following error from the following code:
Quote:
QUOTE
Server.MapPath(), ASP 0172 (0x80004005)
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
/html/objconn.asp, line 11
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
/html/objconn.asp, line 11
The code is as follows.
Code:
CODE
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("C:\Documents and Settings\jk\My Documents\testdb.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
rs.Open "SELECT Companyname, Contactname FROM Customers", conn
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("C:\Documents and Settings\jk\My Documents\testdb.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
rs.Open "SELECT Companyname, Contactname FROM Customers", conn
Would very much appreciate any help as to where i'm going wrong here. Many Thanks,kvarnerexpress

