Hi when i run this sql i get this error
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
The statement has been terminated.
The ASP
The SQL:
-Gus
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
The statement has been terminated.
The ASP
Code:
("INSERT INTO offer(OfferCode, OfferPercent, OfferStartDate, OfferFinishDate, OfferDescription) VALUES ('" & OfferCode & "'," & OfferPercent & ",'" & CDate(Now) & "','" & CDate(DateAdd("d", DaysActive, Now)) & "','" & offerDescription & "')")
The SQL:
Code:
INSERT INTO offer(OfferCode, OfferPercent, OfferStartDate, OfferFinishDate, OfferDescription) VALUES ('24082005-162928',1,'24/08/2005 16:29:28','04/08/2005 16:29:28','')
-Gus