Boy do I know what you're experiencing!
Quote:
Originally posted by HakanAzaklioglu
Like this??
=======================
conn.Execute "insert into MAILBLASTLOG (FROM, SENDTO, SUBJECT, MESSAGE, DATE, TIME, IP) " _
& "values (" _
& "'" & Request.Form("ddFROM") & "', " _
& "'" & Request.Form("ddIND") & "', " _
& "'" & Request.Form("txtSUBJ") & "', " _
& "'" & Request.Form("msgMSG") & "', " _
& "'# & DATE() & #', " _
& "'# & TIME() & #', " _
& "'" & REQUEST.SERVERVARIABLES("REMOTE_HOST") & "')"
=======================
Thank you
Wow, I've been here many times! I've had -many- INSERT statements fail and usually it was something as simple as the date delimiter you guys mentioned. Sometimes it was something dumb like a field name error. Sometimes it was me trying to put the wrong type of data into a database field. Are you positive all your field names are correct and that you're putting string data into string fields, date data into date fields, numeric data into numeric fields? Also, are you trying to put a very long string into a field that is too small?
Post a reply when you figure it out. I'm interested.
What about field lengths?
Quote:
Originally posted by HakanAzaklioglu
I can't find anything wrong with it... I even tried to just post simple data from the form like somebodys name with no special character in to every field of the insert command and no luck it acts like it doesn't make it past the first line of the insert command always the same damn sytax error message...
As far as the database goes it is a Access 2000 database and all the columns are set to text. The reason for that is I have had fewer problems with inserts if I set all db columns to text...
I dunno... any help is apreciated and all of you that have posted... Thanks alot for your time...
Kind Regards,
Hakan
Did you check your text field lengths? Are you trying insert something big in small field? Also, do you have any fields set to 'NOT allow zero length' and they are -not- getting any data?