I have a formula that works great in my report but it's not repeating for each new group. I need it to reset for each M/O. Please refer to the following URL or below to see how the formula was applied.
If you're trying to display the value at the end of the report and if the formula should 'look' at records on each row, then the formula should be modified to:
whileprintingrecords;
If instr({MIMORD.opCode}, "HEAT TREAT") > 0 then
numbervar qty := {MIMORD.compQty}
else 0
The above formula should be placed on the details section. (Formula @ht in my crystal report)
You'll then need another formula (Formula @ht2 in my crystal report) to 'display' that value and this should go in the footer:
whileprintingrecords;
numbervar qty;
The first picture below is the crystal report, the second picture is the report output and the third picture shows that the M/O #0057 should display 0 in the second picture under "Completed quantity at heat treat" since there is no HEAT TREAT operation as seen in the third picture.. I thought I could use Group Expert but it asks me to choose a field and my formula is not an option. Is there a manual formula or another way around grouping? Thank you.
Report Output
Separate detailed report that shows all operations not just the final heat treat quantity.