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

Conditionally Suppress Row in Cross-Tab 2

Status
Not open for further replies.

gbobbie

Technical User
Aug 9, 2006
52
US
CR9/Access DB

I created a crosstab that looks as follows:
Code:
           Appointment     Phone Call     Fax    Mail
Person1     5               6              8      10
Person2     6               4              10     9 
Person3     8               11             4      6
"Blank"     1               0              0      0

The database is used by people who log the amount of contacts they receive. Due to human error, occassionally they leave the name field blank. I don't want to include the row with the null person name. Can I suppress this row in a cross-tab?

Any assistance whatsoever is GREATLY appreciated!!!
 
First create a formula like {@person}:

if isnull({table.person}) then
"" else
{table.person}

Then use this formula as your row field. Then select the inner cell->format field->common->suppress->x+2 and enter:

gridrowcolumnvalue("@person") = ""

Then go to the customize style tab of the crosstab and check "suppress empty rows".

-LB
 
Another approach is to simply remove those records from your report by using a record selection formula:
NOT IsNull({table.person})

- Ido



view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top