I'm new to Crystal Reports and am having problems creating a formula that pulls records from the last business day.
The date field in the table I'm pulling from is formatted:
02/01/2002 03:02:11AM
The formula I tried to use is:
IF dayofweek (CurrentDate) = 1
Then CASE.swDateCreated = (CurrentDate - 2)
Else CASE.swDateCreated = (CurrentDate - 1)
The error I get is:
A number, currency amount, boolean, date, etc. expected.
Thanks in advance for any help.
DeniseAA
The date field in the table I'm pulling from is formatted:
02/01/2002 03:02:11AM
The formula I tried to use is:
IF dayofweek (CurrentDate) = 1
Then CASE.swDateCreated = (CurrentDate - 2)
Else CASE.swDateCreated = (CurrentDate - 1)
The error I get is:
A number, currency amount, boolean, date, etc. expected.
Thanks in advance for any help.
DeniseAA