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

conditional page breaks

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I want to present all the records of one column of a database table. Let's say that there are 1000 records for this column, I know Crystal report will list all the records and break pages automatically. My question is: In stead of letting Crystal Report to list all the records and break the pages, is that possible that I control where to break the pages. For example, if the record equals to certain value, print from a new page.

Thanks.

Bin Wang
Universal Hi-Tech Development, Inc.
 
Yes. Format your Detail section. Click the Formula button next to "New Page Before". Enter a formula such as:

{table.field} = "ABC123"

Anytime the field is equal to ABC123, that record will start on a new page.
 
You can use any Boolean expression here. CR will page break whenever that condition is true. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top