Avatar of vbjohn
vbjohn

asked on 

Suppress every 2nd and 3rd record

I need to suppress every 2nd and 3rd record that comes through.  I am using Crystal Reports 9.  I need to add this in the Formula Editor.

Any examples?
Crystal Reports

Avatar of undefined
Last Comment
dsacker
Avatar of dsacker
dsacker
Flag of United States of America image

Crystal Report does not evaluate the reserved variable "RecordNumber" at record selection time, but you could put this in your detail section for the "Suppress" option.

Just right-click on the detail section, go into Section Expert, select the X-2 for the Suppress, and enter the following formula:

    Remainder (RecordNumber, 3) <> 0

That will suppress the 2nd and 3rd records.
Avatar of vbjohn
vbjohn

ASKER

No that does not work.
Avatar of vbjohn
vbjohn

ASKER

Record 1
109039 - L9090 - DCR001
Record 2
109039 - L9090 - 999999
Record 3
109039 - L9090 -888888
Record 4
109040 - L9777 - YW1004
Record 5
109040 - L9777 -9912323
Record 6
109040 - L9777 -8888888

I need to see....
Record 1
109039 - L9090 - DCR001
Record 4
109040 - L9777 - YW1004
ASKER CERTIFIED SOLUTION
Avatar of dsacker
dsacker
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of dsacker
dsacker
Flag of United States of America image

Put the Record Number in your report temporarily, and you'll see which number record is being allowed.
If that doesn't work try

(RecordNumber MOD 3) <> 1

mlmcc
Avatar of vbjohn
vbjohn

ASKER

You are awesome!   Thanks.
Avatar of dsacker
dsacker
Flag of United States of America image

Glad I could help.
Crystal Reports
Crystal Reports

Crystal Reports is a business intelligence application from SAP SE. It is used to graphically design data connections and report layouts from a wide range of data sources including Excel spreadsheets, Oracle, SQL Server databases and Access databases, BusinessObjects Enterprise business views, and local file-system information. Report designers can place fields from these sources on the report design surface, and can also deploy them in custom formulas (using either BASIC or Crystal's own syntax), which are then placed on the design surface. Crystal Reports also supports subreports, graphing, and a limited amount of GIS functionality.

36K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo