Originally Posted by
MPXJohn
Sorry about that. Meant to delete the second report.
Report "Cost_Packet_Report"
Enter '2689' when prompted. This is the ID of the customer in the 'Customer_Part_Numbers' table and is the one I was using for testing the calculations, so it has all the data needed in it.
The 'Total Price' prompt is one of the errors happening since I moved the summation to the footer.
The reason you get the second prompt for unit_price is because that is itself a calculated value.
So your totals field needs to use the original fields for that part as well
Code:
=Sum([Cost Packet Quantity]*(IIf([Order Total]>[Price Break4],[Price Break4 Cost]+([Shipping Charges]/[Order Total]),[Cost])))
This now works 'perfectly' and the total is shown
If you prefer, the textbox could be unbound & code used in the Report_Footer On Format event to set that:
Code:
MytextBox=Sum([Cost Packet Quantity]*(IIf([Order Total]>[Price Break4],[Price Break4 Cost]+([Shipping Charges]/[Order Total]),[Cost])))
BTW Your report is far too wide to print on one page