Topic: Looping in Crystal Report 10 Posted: 09 Jul 2010 at 4:01am
Hi,
I am new to Crystal reports.
I'd appreciate some help on Looping.
What I want is :
1) I have a field Pallet Qty in the database which is a number.
2) In the report detail section I have put product number field.
3) I want to print the product number as many times as the Pallet Qty.
If product number = xyz the pallet qty = 4 for the shipment I want to print:
xyz
xyz
xyz
xyz
The formula I wote is:
Dim i As number
Dim Result as number
For i = 1 To {SDELIVERY.YNOPALPCK_0}
Result = {SDELIVERY.YNOPALPCK_0} - Result
Next i
formula = Result
I used the formula as Group 1.
The above gives me only 4.00 and does not seem to loop as
1.00
2.00
3.00
4.00
Is there a simple solution?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum