Question
format error when null
On my .asp page I am formatting values in a table like:
FormatCurrency((rsPartsData.Fields.Item("Act03").Value), 0, -2, -2, -2)
Problem is, when the value is NULL I get an error (because you can't format
NULL, of course). I've tried if/then in the table cell and using coalesce
along with the format - both with no luck.
How can I code it so that if the value is NULL I just display $0 ??
FormatCurrency((rsPartsData.Fields.Item("Act03").Value), 0, -2, -2, -2)
Problem is, when the value is NULL I get an error (because you can't format
NULL, of course). I've tried if/then in the table cell and using coalesce
along with the format - both with no luck.
How can I code it so that if the value is NULL I just display $0 ??