Guest_imported
New member
- Jan 1, 1970
- 0
Could someone take a look at this code and possibly tell me what is wrong?<br><br><%<br>Dim DataConn<br>Dim SQL1<br>Dim MYSQL<br>PN = request.form("project_name"<br>UR = request.form("url"<br>CAT = request.form("category_id"<br>DUE = request.form("Due_Date"<br>Stat = request.form("status"<br>Note = request.form("notes"<br><br>Set DataConn = Server.CreateObject("ADODB.Connection"<br>Set SQL = Server.CreateObject("ADODB.Recordset"<br><br>DataConn.Open "DBQ=" & Server.Mappath("/Secure Employee DataBase/SecureEDB.mdb" & ";Driver={Microsoft Access Driver (*.mdb)};"<br><br>MYSQL = "INSERT INTO Projects (Project, URL, Category, DueDate, Status, Notes) VALUES (PN,UR,CAT,DUE,Stat,Note)"<br><br>SQL.Open MYSQL, DataConn <br>%><br><br>This is the Error Message I recieve when I run this.<br>-----------------------------------------------------------<br>Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br><br>[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 6. <br><br>/Project.asp, line 44 <br>-----------------------------------------------------------<br><br>P.S.> Why does it always report my error on a line (like line 44) that eithor doesn't exist or is a long way from where the actual code error occures, just wondering... <p>John Vogel<br><a href=mailto:johnvogel@computerwiz.net>johnvogel@computerwiz.net</a><br><a href= Home Page</a><br>Check out