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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to show "Various" if there are more than 10 records 1

Status
Not open for further replies.

moonpie2

Technical User
Feb 22, 2010
2
US
Hi,

I'm using Crystal 2008 and am trying to pull a field {table.field1} in a sub report (Details section), but if there are more than 10 records, I need it to show "Various" instead of the list of records.

For example, if the report shows:
1
2

Then I need the report to show "1" and "2".
If the report shows:
1
2
3
...
11
12

Then I need the report to show "Various" instead of listing all the numbers.

I've created a Running Total Count for the field and set a formula to say "Various" if count > 10 in the Report Footer, but I can't suppress the fields in the detail section, I can only get the fields beyond #10 to be suppressed...

Any help would be greatly appreciated!
 
Use a formula like this to suppress the detail section:

count({table.field}) > 10

For the formula in the footer, use:
if count({table.field}) > 10 then
"Various"

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top