Being new to Crystal, I have a field that is formatted as a string, but is a date field. I need to create a formula that calculates an age from this date. Here is what I have.
If not(isnull({tablename;1.Birthday}))then
DateDiff ('yyyy',Today() ,CDate({tablename;1.Birthday}))
ELSE
00000000
What is happening is that when the string or date is blank, then I get an error when previewing the report.
What I want is just a blank field.
I have searched the previous posts, but can't seem to get this to work.
If not(isnull({tablename;1.Birthday}))then
DateDiff ('yyyy',Today() ,CDate({tablename;1.Birthday}))
ELSE
00000000
What is happening is that when the string or date is blank, then I get an error when previewing the report.
What I want is just a blank field.
I have searched the previous posts, but can't seem to get this to work.