Quote:
quote:Originally posted by doosti
It seems to me that you are getting an error bcoz of the data type mismatched in database...what you are trying to insert is may be not valid for the data type you have seleted in the designing phase of database. You must be entering large data in a noncompatible field of database. Do check the datatype of the field in which u r inserting date.
Farzan Q.
BS(TeleCommunication)
Iqra University.
|
Thanks so much for helping me out. Appreciate that. I checked my database again after reading your message. Both trans_id and cus_id are numeric fields and trans_date is Date/Time field. Strangely, no matter what I do--either removing all the quotes or just removing single quote around trans_id and cus_id field, there is another message in the same line showing "Syntax error in INSERT INTO statement." I looked up for all the book I have, but I still don't see "Syntax error" here. Would you mind telling me what I did wrong here? Thanks a lot.
Error Message:
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in INSERT INTO statement.
/ITEC4477/Term Project/addToCart.asp, line 103
The line with error:
conn.Execute ("INSERT INTO trans (trans_id, cus_id, trans_date) values (" & inttrans_id & ", " & intcus_id & ", #"& trans_date & "#)")