Hi,
[Crystal Reports 2008]
I'm writing a report and only want to return those groups that have more than two records in the details section.
My groups are:
- PatientID
- PatientName
- DataEntryDate (sorted by each day)
I've got two sets of record counting formulas (one is running total field, while the other set is three separate formulas). The formulas are:
- #RecordCount (running total field, summarizes PatientName for each record, resets on change of PatientID group)
- @RecordCount, @RecordTotal, and @RecordReset
The formula for @RecordCount (placed in Detail section):
The formula for @RecordTotal (placed in PatientName group footer):
The formula for @RecordReset (placed in PatientID group footer):
I've tried using...
&
&
&
...individually in the Group Selection formula, but it always throws a "This field can't be summarized until later" error message back.
I don't want to suppress just the detail records that have a count of 3 or greater...I want to select only the groups that have 3 or more detail records.
Thanks,
beacon
[Crystal Reports 2008]
I'm writing a report and only want to return those groups that have more than two records in the details section.
My groups are:
- PatientID
- PatientName
- DataEntryDate (sorted by each day)
I've got two sets of record counting formulas (one is running total field, while the other set is three separate formulas). The formulas are:
- #RecordCount (running total field, summarizes PatientName for each record, resets on change of PatientID group)
- @RecordCount, @RecordTotal, and @RecordReset
The formula for @RecordCount (placed in Detail section):
Code:
WhilePrintingRecords;
NumberVar record;
record := record + 1;
The formula for @RecordTotal (placed in PatientName group footer):
Code:
WhilePrintingRecords;
NumberVar record;
record := record;
The formula for @RecordReset (placed in PatientID group footer):
Code:
WhilePrintingRecords;
NumberVar record := 0;
I've tried using...
Code:
@RecordCount > 2
Code:
#RecordCount
Code:
Count(MyTable.PatientName) > 2
Code:
Count(MyTable.DataEntryDate) > 2
...individually in the Group Selection formula, but it always throws a "This field can't be summarized until later" error message back.
I don't want to suppress just the detail records that have a count of 3 or greater...I want to select only the groups that have 3 or more detail records.
Thanks,
beacon