joepeacock
Programmer
My client sent me an error message they received:
ODBC Error Code = 22008 (Datetime field overflow)
This is happening during a CFINSERT tag. (I know a CFQUERY would ordinarily be preferred. There are a number of reasons I used a CFINSERT in this case. If you are just going to tell me to re-write it with a CFQUERY, don't bother.)
I know this is often caused by trying to enter a date that is out of range, or in European format. The problem is, I can't replicate the error. The date that is input into the field is checked for validity using ISDATE() function a couple of templates before the insert and any invalid date is rejected.
I have tried entering dates in DD/MM/YY, DD/MM/YYYY, DD-MM-YYYY, and all kinds of other non-standard formats. Every time it is either rejected by the ISDATE() function, or is permitted by the CFINSERT. But somehow the client managed to pass a date by the ISDATE() that caused an error with the CFINSERT.
Any ideas what the client entered that would do that? I need to set up handling for it, I guess, but I don;t know where to start.
Using MS SQL Server and CF 5.0 on a Win2K machine
Thanks in advance -
- Joe