IF Mid ({new_combine.F_S}, 7, 1)="01" THEN
DUCT_TOTAL01=DUCT_TOTAL01 + {new_combine.F_Q}
I want to look for a period in the F_S field and if does not exist look for a string of "01". If "01" exists I want to increment the total DUCT_TOTAL01 by the quantity F_Q. I receive the warning when I attempt to save and close.
I will admit that this message is not very helpful, but you are getting this message because you are mixing apples and oranges. You are trying to do running totals both the easy way and the hard way at the same time.
The evaluate condition in a running total field tells it WHEN to increment, not WHAT to increment. You simply want to have the following evaluate formula:
InStr ({new_combine.F_S}, "."=0 and
Mid ({new_combine.F_S}, 7, 1)="01"
You tell it WHAT to summarize in the FIELD TO SUMMARIZE setting, and then pick the operation SUM if you want to accumulate them.
The formula that you are using would be a good running total as a stand-alone formula. This is how we did it before there were running total fields. The only type was the last = should have been := which is the CR asssignment operator.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.