Hello,
I'm trying to select the output according to the date. I want everything for a year from yesterday. Would I want to be using "LastYearYTD"??
Hope you can help!
I get an error message that says:
"A number, currency amount, boolean or string is expected here."
Is the only thing I need to change in the formula the DateField to my DateField??
Yes, one replacement with your field.
Where is the cursor after you get this error?
Do you have a true date field?
What version of CR are you running? Ken Hamady
The cursor is at the start of "DateAdd" in the formula, after the error is reported.
I'm not sure if it's a true date field, how can I find out? I am using Version 7 of Crystal.
The DateAdd function is not installed with V7 but comes with V8. You have to download the DLL that has this function from Seagate's Web Site if you want to use it with V7.
You could also use:
{Datefield} in
(CurrentDate - 366)
to (CurrentDate - 1)
This, however, would be one day short in a leap year. Ken Hamady
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.