LongFeiFengWu
Technical User
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.
/money/save.asp, line 6
"If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo." ~ Bruce Lee
[Microsoft][ODBC Microsoft Access Driver] Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.
/money/save.asp, line 6
Code:
<%
IF request.form("Dollars") > 0 THEN
[COLOR=#FF0000]objrec.open "Money",objcon,3,3[/color] [b] < --- Line 6[/b]
objrec.addnew
objrec("PDate") = request.form("PDate")
objrec("Type") = request.form("Type")
objrec("Amount") = request.form("Dollars") & "." & request.form("Cents")
objrec("EntryDate") = request.form("EntryDate")
objrec("Desc") = request.form("Desc")
objrec.update
ELSE
objrec.open "PDate",objcon,3,3
objrec.addnew
objrec("PDate") = request.form("MONTH") & "/" & request.form("DAY") & "/" & request.form("YEAR")
objrec.update
END IF
%>
"If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo." ~ Bruce Lee