|
rdouglass -> RE: error on insert (2/28/2008 10:45:09)
|
quote:
sql = "INSERT INTO Calendar (date,event)" sql = sql & "VALUES ('" & (Request.Form("date")) & "'," & "'" & (Request.Form("event")) & "')" If that is a Date/Time field in the DB, try it this way: sql = "INSERT INTO Calendar ([date],event)" sql = sql & "VALUES (#" & (Request.Form("date")) & "#, '" & (Request.Form("event")) & "')" 1. "date" is a reserved word so you need to surround it with square brackets when using it as a field name. 2. Date/time fields in Access use a # for a delimiter instead of the apostrophe. That help any?
|
|
|
|