Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimum date

Status
Not open for further replies.

DiegoMarcet

Programmer
Feb 4, 2003
1
AR
Hi, I'm just starting using Crystal Reports 8.5 and I've found myself in a problem when I wanted to get a single record from a recordset that complies a condition where the date is the minimum in a range entered as parameters.
I cannot use the Minimum function since this error appears:
"The function cannot be used because it must be evaluated later"

Any suggestions?
The formula I'm using is:
{?Begin_Date} <= Minimum ({SOLD.DATE}) and {SOLD.DATE} <= {?End_Date}

Thanks
 
A summary operation (such as minimum) of one of your fields is evaluated towards the end of the gathering and evaluation of data.

If you want to see the the earliest record that was returned, your formula field would:
minimum({SOLD.DATE})

Mike
If you're not part of the solution, you're part of the precipitate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top