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!

Best way supressing entire page based on a condition

Status
Not open for further replies.

geoffreyg

Programmer
Dec 6, 2000
15
US
I created a customer statement.

Sometimes I want to print statements with zero balances, other times I do not. I created a parameter called SuppressZero.

What is the best way to suppress invoice printing based on the parameter (SuppressZero) and the "InvoiceTotal" field?

Thanks!
 
If the zero balance is a group subtotal you can put the following into your group selection formula:

If {?Print0} = True
then True
else sum({field}, {Groupfield}) > 0

This will eliminate the records from that group so they don't print. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top