My database user has just decided that a recent text field in my database needs to be numeric so that some calculations can be run. I've changed it to a double so I can keep the point formatting (ie. 4.1).
I have changed the data types and altered my variables to insert numbers. I have added a default value of 0 to new records added to the database.
Howevern, some of the existing records have a null field in this changed column.
CF can display them but won't update the field without erroring out if the field is left blank.
Expand|Select|Wrap|Line Numbers
- PowerRating = <cfif IsDefined("form.PowerRating") AND #form.PowerRating# NEQ "">
- #form.PowerRating#
- <cfelse>
- NULL
- </cfif>,
Thanks
Neil