I'm using this method to load a date in a insert query.
<cfif IsDefined("Form.goodThrough") AND len(trim(Form.goodThrough))>
<cfqueryparam value="#DateFormat(Form.goodThrough, "mm/dd/yyyy")#" cfsqltype="CF_SQL_DATE"><cfelse>NULL</cfif>
so that I don't get 1/1/1900
The problem is when I want to remove the date from the record. If I blank it out I end up with 1/1/1900 again rather than Null
Can you tell me the proper way to use this when it's an update query?
How do I set the field to Null? Thanks in advance for your help
<cfif IsDefined("Form.goodThrough") AND len(trim(Form.goodThrough))>
<cfqueryparam value="#DateFormat(Form.goodThrough, "mm/dd/yyyy")#" cfsqltype="CF_SQL_DATE"><cfelse>NULL</cfif>
so that I don't get 1/1/1900
The problem is when I want to remove the date from the record. If I blank it out I end up with 1/1/1900 again rather than Null
Can you tell me the proper way to use this when it's an update query?
How do I set the field to Null? Thanks in advance for your help