Hi all,
I am looking for a way to have a check on a continuous form, I have a subform which allows me to select a number of areas (localities) to which a service is provided to, I have been asked to add in an apportionment split field which i have done - no problem there. But what i would like to do is check the sum of the continuous form = 100% -
eg: Pipe delimited
Hyndburn | 60%
Burnley | 25 %
Ribble Valley | 10%
Total: 95%
I have in the form footer a text box which adds up for me, but i would like to incorporate a msgbox highlighting that the apportionment has not been entered correctly. I have tried the following on afterupdate on both the percent field and total field:
But the code seems to fire before the total column has updated.
Can anyone please point me in the right direction?
Many Thanks - Ian
I am looking for a way to have a check on a continuous form, I have a subform which allows me to select a number of areas (localities) to which a service is provided to, I have been asked to add in an apportionment split field which i have done - no problem there. But what i would like to do is check the sum of the continuous form = 100% -
eg: Pipe delimited
Hyndburn | 60%
Burnley | 25 %
Ribble Valley | 10%
Total: 95%
I have in the form footer a text box which adds up for me, but i would like to incorporate a msgbox highlighting that the apportionment has not been entered correctly. I have tried the following on afterupdate on both the percent field and total field:
Code:
If Me.txt_ApportionCheck <> 1 Or Me.txt_ApportionCheck <> 0 Then
MsgBox "Apportionment Entered Does NOT Equal 100%", , "Calculation Error"
End If
But the code seems to fire before the total column has updated.
Can anyone please point me in the right direction?
Many Thanks - Ian