I'm using CR8 and Oracle backend. I'm having problems with my if statements. Here's my formula, which doesn't work:
If not isnull(CS_End) and isnull(BS_End) then ""
Elseif
If isnull(CS_End) and not isnull(BS_End) then ""
Elseif
If not isnull(CS_End) and not isnull(BS_End) then
datediff("d", BS_End, CS_End) = 0 then
"Yes"
Else
"No"
Basically, if one or both date fields are empty I want an empty string. If both date fields have a date in them then I want to do the datediff function.
The BS_End is a shared variable from a subreport and I've tried just testing that one value using the isnull function and printing an "N/A" instead of an empty string and I get nothing. But, the shared variable does work with the datediff function when both date fields are not empty. Can anyone help.
Thanks,
Sherry
If not isnull(CS_End) and isnull(BS_End) then ""
Elseif
If isnull(CS_End) and not isnull(BS_End) then ""
Elseif
If not isnull(CS_End) and not isnull(BS_End) then
datediff("d", BS_End, CS_End) = 0 then
"Yes"
Else
"No"
Basically, if one or both date fields are empty I want an empty string. If both date fields have a date in them then I want to do the datediff function.
The BS_End is a shared variable from a subreport and I've tried just testing that one value using the isnull function and printing an "N/A" instead of an empty string and I get nothing. But, the shared variable does work with the datediff function when both date fields are not empty. Can anyone help.
Thanks,
Sherry