on 04-28-2009 5:17 PM
I want to test for a blank date field, but isnull(date field) is not evaluating as a null when the field is, in fact, empty. I have Convert Database Null Values to Default checked because I need it checked for other purposes in my report.
As an alternative, I'm using the following formula. Is this equivalent to isnull(date field)?
If length(cstr(date field)) = 0 then "null"
Else (date field)
Is there any scenario under which this this formula would not work?
I'd appreciate any feedback.
Gary
Hi,
If LENGTH(TRIM(DATEFIELD)) = 0 OR ISNULL(DATEFIELD) THEN "NULL"
ELSE
TOTEXT(DATEFIELD,"FORMAT");
Regards,
Sathish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.