I have a Crystal 2008 report that uses the following parameters to look for data…
{ICAUDIT.FLD_NBR} in [0, 21, 22, 23] and
{ITEMMAST.USER_FIELD2} startswith “X” and
{ICAUDIT.R_DATE} = CurrentDate - 1
The problem I am finding is that the report is missing data. For instance, the file that was produced on the 9th of this month, missed 2 records. I found them by going in and changing the - 1 to a - 4 and there they were.
The ICAUDIT.R_DATE field lists as 10/8/2010 12:00:00AM
So, anything that was “added” to the database on the 8th, would have the same {ICAUDIT.R_DATE} field.
I don’t have the foggiest idea as to why the report missed 2 items that matched the same criteria as the other 6 items that it found.
I believe I have discovered the issue, but not sure as to why exactly. Seems the database linking got a bit screwy. Changed that and it seems items are coming through correctly now.
If you are looking at older data (eg. Saved Data or an old Instance) the report will re-calculate the formulas, etc based on TODAY or CURRENTDATE which is a DIFFERENT date (**As of NOW) than when the Data was executed against the database.
DataDate “locks” the formulas, etc to the specific-date that the Data was executed against the database.