Hi all
I've got a continuous form in which i am recording percentage values. In the form footer I've got a textbox calulating the total percentage using
=Sum([Percentage]) in the control source.
when I update the percentage values I requery the total percentage, no problem.
What I want to do is to ensure the total percentage value is <= 100
I've used the following in the afterupdate of the percentage control after the requery
If me!percentage >= 100 then
msgbox "percentage to high"
end if
however this isn't working because the total box hasn't updated before the if statement.
any ideas?
Thanks
Mick
I've got a continuous form in which i am recording percentage values. In the form footer I've got a textbox calulating the total percentage using
=Sum([Percentage]) in the control source.
when I update the percentage values I requery the total percentage, no problem.
What I want to do is to ensure the total percentage value is <= 100
I've used the following in the afterupdate of the percentage control after the requery
If me!percentage >= 100 then
msgbox "percentage to high"
end if
however this isn't working because the total box hasn't updated before the if statement.
any ideas?
Thanks
Mick