A
Al Campagna
Hello all,
I have a main form and a continuos record subform. In the footer of that
subform is a calculated field that sums a bound field in the subform. The
calculated field is called TotalDisbursement, and has a ControlSource of...
=Sum(NZ([ActualLengthM]))
This calculation works fine, but my problem occurs when I add a new
record with another ActualLengthM value to be added to the
TotalDisbursement.
So... I Requery the subform just before I run my "decision" code.
However, after the Requery, when I try this code...
Me.Requery
(BREAK) If TotalDisbursement > (RollLength * 1.1) Then.....
the value of TotalDisbursement = 0! I placed a BREAK in the code, and
RollLength is correct, but the TotalDisbursement
value = 0.
**If I remove the Requery, the decision code runs just fine. Of course it
operates without the "new" subform value since my NEW ActualLengthM value
doesn't get added in, BUT, at least TotalDisbursement has a value when I
BREAK on the code.
Why is the Requery causing my footer calculation to return 0 when I run
my code?
TIA
Al Campagna
Candia Computer Consulting
Candia, NH
I have a main form and a continuos record subform. In the footer of that
subform is a calculated field that sums a bound field in the subform. The
calculated field is called TotalDisbursement, and has a ControlSource of...
=Sum(NZ([ActualLengthM]))
This calculation works fine, but my problem occurs when I add a new
record with another ActualLengthM value to be added to the
TotalDisbursement.
So... I Requery the subform just before I run my "decision" code.
However, after the Requery, when I try this code...
Me.Requery
(BREAK) If TotalDisbursement > (RollLength * 1.1) Then.....
the value of TotalDisbursement = 0! I placed a BREAK in the code, and
RollLength is correct, but the TotalDisbursement
value = 0.
**If I remove the Requery, the decision code runs just fine. Of course it
operates without the "new" subform value since my NEW ActualLengthM value
doesn't get added in, BUT, at least TotalDisbursement has a value when I
BREAK on the code.
Why is the Requery causing my footer calculation to return 0 when I run
my code?
TIA
Al Campagna
Candia Computer Consulting
Candia, NH