how do i build an if statement that does nothing if it's true. ie.
If Forms!frm_projectbud!ProjectAmt > Forms!frm_projectbud!txtProjBudTotal Then (nothing... proceed action?)
else
MsgBox "Project Budget Total can not exceed your Balance"
End If
ALSO how can i build a filter to make sure the sum of a field in subform does not exceed certain amount?
ie. form /w subform. Form has fieldbox "txtAmount"
users can fill out subforms. however, i need to somehow figure out a way so that sum of their "txtBudamt" can't exceed txtAmount.
pretty much. user has given amount. And they can divide/categorize the fund.
i'ved tried creating a text box to sum the budamt and use the above if statement but does not work... any suggestions?
If Forms!frm_projectbud!ProjectAmt > Forms!frm_projectbud!txtProjBudTotal Then (nothing... proceed action?)
else
MsgBox "Project Budget Total can not exceed your Balance"
End If
ALSO how can i build a filter to make sure the sum of a field in subform does not exceed certain amount?
ie. form /w subform. Form has fieldbox "txtAmount"
users can fill out subforms. however, i need to somehow figure out a way so that sum of their "txtBudamt" can't exceed txtAmount.
pretty much. user has given amount. And they can divide/categorize the fund.
i'ved tried creating a text box to sum the budamt and use the above if statement but does not work... any suggestions?