I'm bevame mad
with this now. It keeps showing this error when I try to insert a record using ASP+SQL to MS Access database:Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.my code is:Session("news_photo") = Request.Form("txtPhoto")Session("news_photo_title") = Request.Form("txtPhotoTitle") Dim conn, rs, strSQL, strIP_Address, news_date strIP_Address = Request.ServerVariables("REMOTE_ADDR") news_date = Session("news_year") & "/" & Session("news_month") & "/" & Session("news_day") news_date = CDate(news_date) Set conn = Server.CreateObject("ADODB.Connection") conn.CursorLocation = 3conn.Open "b4all_news" Set rs = Server.CreateObject("ADODB.Recordset") Set rs = conn.Execute("SELECT COUNT(*) AS total_contacts FROM news WHERE title = '" & Session("news_title") & "'") If rs("total_contacts") >= 1 Then Session("error_message") = "Êã ÇáÚ辄 Úáì ÎÈÑ íÍãá äÝÓ ÇáÚäæÇä ¡ íÑÌì ÇáÊÃßÏ æÊÛííÑ ÇáÚäæÇä" Response.Redirect "error.asp"Else strSQL = "INSERT INTO news (news_date, news_time, category, title, text, breaking, released, news_photo, photo_title, created_date, created_ip) Values ('" & news_date & "', '" & Time & "', '" & Session("news_category") & "', '" & Session("news_title") & "', '" & Session("news_text") & "', '" & Session("is_Breaking") & "', '" & Session("is_release") & "', '" & Session("news_photo") & "', '" & Session("news_photo_title") & "', '" & Now & "', '" & strIP_Address & "')" Session("SQL") = strSQL Set rs = conn.Execute(strSQL) Set rs = Nothing Set conn = NothingEnd If Response.Redirect "index.asp"