I'm no Crystal expert, but I think you need to create a calculated
field to reset the global variable(name the field 'reset_LastDate').
The formula will contain the neccessary declarations, and one line to
set the date an 'early' date (like 1/1/1980).
Place the field in the Customer Group header section. Everytime the
customer changes the LastDate value should be reset.
You'll need to hide/supress the field and/or group header. I don't
recall the exact details, so some experimenting would be in order.
Calvin
--- In vantage@yahoogroups.com, "jstockard990" <jeff.stockard@...>
wrote:
field to reset the global variable(name the field 'reset_LastDate').
The formula will contain the neccessary declarations, and one line to
set the date an 'early' date (like 1/1/1980).
Place the field in the Customer Group header section. Everytime the
customer changes the LastDate value should be reset.
You'll need to hide/supress the field and/or group header. I don't
recall the exact details, so some experimenting would be in order.
Calvin
--- In vantage@yahoogroups.com, "jstockard990" <jeff.stockard@...>
wrote:
>that a
> I am trying to make a Crystal report that shows me the last date
> Customer had a Sale. I have the report and I can return all of theSale.
> Sales orders. When I use this formula, I get the date of the last
>have
> Global dateTimeVar LastDate;
> local dateTimeVar Display_LastDate;
>
> if DateValue ({BAQReportResult.InvcHead.InvoiceDate}) > DateValue
> (LastDate)
> then
> LastDate := {BAQReportResult.InvcHead.InvoiceDate}
> else
> LastDate
> However, I don't know how to reset the field on group change (I
> the records grouped by CustID). I want to only show the last Saleand
> without resetting the field, it give me the date of the last saleto
> any prevoius customer who has a Sale date greater than theirs.
> Does anyone know the formula in Crystal to reset my field on group
> change?
>