The variable was shared and the following was added to the header
Shared NumberVar NBLocBal := 0;
I only want to capture the amount when a certain condition is met.
if ContNo = 9087 then NBLocBal := Amount (5,000). I put a similar statment in the detail.
If I use the if then statment there has to be an else. If the Amount is set to 0 when ContNo <> 9087 then NBLocBal will be 0 in the footer.
How do I set the variable only when my condition is met and display the data in the footer.