Hello all,
currently working on a report where within any given group, a certain date may or may not exist.
Have taken care of that in the SQL using:
However, in the report itself, as the field is formatted as dd/MM/yyyy, these are being displayed as 01/01/1900. Now, this is not entirely unexpected so I tried putting some IIF statements together to coerce a blank field instead but nothing seems to work....
I have tried amending the format of the field:
=IIF(LEN(Fields.SurveyDate.Value.tostring) < 1 ,"General","dd/MM/yyyy")
and the colour of the field
=IIF(Fields.SurveyDate.Value) < 1 ,"White","Black")
Neither of these approaches seems to work and I cannot figure out if it is because I need to convert the date differently 1st or whether anything in a dd/MM/yyyy format will show as 01/01/1900 if there is no data or even if I should handle it differently in the SQL
Any suggestions would be welcomed
Rgds, Geoff
A file that big? It might be very useful. But now it is gone
Please read FAQ222-2244 before you ask a question
currently working on a report where within any given group, a certain date may or may not exist.
Have taken care of that in the SQL using:
Code:
ISNULL(dbo.ScheduleOfDilapidations.SurveyDate, '') AS SurveyDate
However, in the report itself, as the field is formatted as dd/MM/yyyy, these are being displayed as 01/01/1900. Now, this is not entirely unexpected so I tried putting some IIF statements together to coerce a blank field instead but nothing seems to work....
I have tried amending the format of the field:
=IIF(LEN(Fields.SurveyDate.Value.tostring) < 1 ,"General","dd/MM/yyyy")
and the colour of the field
=IIF(Fields.SurveyDate.Value) < 1 ,"White","Black")
Neither of these approaches seems to work and I cannot figure out if it is because I need to convert the date differently 1st or whether anything in a dd/MM/yyyy format will show as 01/01/1900 if there is no data or even if I should handle it differently in the SQL
Any suggestions would be welcomed
Rgds, Geoff
A file that big? It might be very useful. But now it is gone
Please read FAQ222-2244 before you ask a question