I have this kind of error: (and i can't seem to solve this)
Error Type:
Server.MapPath(), ASP 0172 (0x80004005)
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
/proj/save.asp, line 12
this is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
Dim Conn
Dim Rs
Dim sql
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("ADODB.Recordset")
Dim cat
cat = request.form("category")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("c:/db1.mdb")
sql= "Select description, date, by FROM "&cat
Rs.CursorType = 2
Rs.LockType = 3
Rs.Open sql, Conn
Rs.AddNew
Rs.Fields("description") = Request.Form("description")
Rs.Fields("ddate") = Request.Form("ddate")
Rs.Fields("by")= Request.Form("by")
Rs.Update
Rs.Close
Set Rs = Nothing
Set Conn = Nothing
%>