Kingsteveiv
Technical User
Dear tek-tips friends.
I have a question that is a real stumper for me.
I have two fields in my database
1. Customer Qty - inputted data
2. Standard Pack Size - fixed data
When the customer qty is entered into the database it generates a duplicate report for each pack that needs to be shipped to the customer.
for example.
Customer Qty = 900 (units)
Standard Pack = 85 (units)
By dividing the Customer Quantity by the Standard Pack I get a value of 10.58, which means I will generate 11 reports. The question I have concerns the Standard Pack field that is generated on these reports. I want the first ten reports to display a standard pack of 85 units while I want the last report to display a standard pack of 50 units, since this will equal 900 total units exactly. If I just set that field on the report to equal the standard pack size of 85, then I will ship to many units (problem).
I believe the syntax would be in the form of a Do...Loop, but im not sure and I cant seem to get it to work. Is there any suggestions anyone has for me??
Please Help.
Thank you
I have a question that is a real stumper for me.
I have two fields in my database
1. Customer Qty - inputted data
2. Standard Pack Size - fixed data
When the customer qty is entered into the database it generates a duplicate report for each pack that needs to be shipped to the customer.
for example.
Customer Qty = 900 (units)
Standard Pack = 85 (units)
By dividing the Customer Quantity by the Standard Pack I get a value of 10.58, which means I will generate 11 reports. The question I have concerns the Standard Pack field that is generated on these reports. I want the first ten reports to display a standard pack of 85 units while I want the last report to display a standard pack of 50 units, since this will equal 900 total units exactly. If I just set that field on the report to equal the standard pack size of 85, then I will ship to many units (problem).
I believe the syntax would be in the form of a Do...Loop, but im not sure and I cant seem to get it to work. Is there any suggestions anyone has for me??
Please Help.
Thank you