INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Business Objects: Crystal Reports 1 Formulas FAQ

 Forum Search FAQs Links MVPs

## Formula Help

 Duplicating Records based on a Quantity Field by IdoMillet faq767-3227 Posted: 24 Feb 03 (Edited 19 Apr 10) Problem:A typical situation is where a number of label copies  must be printed for each order according to the {quantity} field in each order record.Solution:Create a "REPEATER" table with a single column (How_Many) that looks like this:How_Many123456etc.Now, in your report, add the Repeater Table and add a join condition of:-----------------------------------Order.quantity >= Repeater.How_Many-----------------------------------If the ">=" join option is not available, remove the join to the REPEATER table and create this condition in the Record Selection condition:--------------------------------{Order.quantity} >= {Repeater.How_Many}--------------------------------This would cause each order to be duplicated as many times as the value of {Order.quantity}.  If you are restricted to using an equal join, you can also modify the repeater table to include N records for each quantity N:122333...This would cause each order to be duplicated as many times as the value of {Order.quantity}.  If you need to print "N of M" modify the repeater table to look like this:N   M1   12   12   23   13   23   3...Cheers,- Ido Visual CUT, and DataLink Viewer:view, e-mail, export, burst, distribute, and schedule Crystal Reports.www.MilletSoftware.com Back to Business Objects: Crystal Reports 1 Formulas FAQ Index Back to Business Objects: Crystal Reports 1 Formulas Forum

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!