I have strange problem in setting N/A to null dates in the report.
When quering db it returns the data where date is null but the same when checked in formula CR XI doesn't set to N/A but displays some julian date instead of N/A.
Code piece is as follows
if isnull({sp.LOAD_END_DT}) then
'NUL'
else
totext({sp.LOAD_END_DT},"MM/dd/yyyy HH:mm")
The same code works fine for another date field.
I checked in the db if there is any other data apart from null but the query returns rows only for is null check.
Ideally the code should be working fine.
Is there any other way to get this to work.
Thanks
-RP
When quering db it returns the data where date is null but the same when checked in formula CR XI doesn't set to N/A but displays some julian date instead of N/A.
Code piece is as follows
if isnull({sp.LOAD_END_DT}) then
'NUL'
else
totext({sp.LOAD_END_DT},"MM/dd/yyyy HH:mm")
The same code works fine for another date field.
I checked in the db if there is any other data apart from null but the query returns rows only for is null check.
Ideally the code should be working fine.
Is there any other way to get this to work.
Thanks
-RP