G
Guest
Hi!
My form has a field that either displays the total of several other fields
on the form or if that total exceeds the budget, displays "Exceeds Budget".
If the latter displays, I want a message box to pop up "Can't process
request" and I want the form to clear. I've tried entering the following
code as an After Update event in the next field (I want to give users the
option of changing their entries before the form is cleared), but it's not
working:
If cmb.Total = "Exceeds Budget" Then
MsgBox "Can't process request"
Me.undo
End If
I also tried entering it as an After Update event in the cmbTotal field, but
this didn't work either. What am I missing?
Thanks
My form has a field that either displays the total of several other fields
on the form or if that total exceeds the budget, displays "Exceeds Budget".
If the latter displays, I want a message box to pop up "Can't process
request" and I want the form to clear. I've tried entering the following
code as an After Update event in the next field (I want to give users the
option of changing their entries before the form is cleared), but it's not
working:
If cmb.Total = "Exceeds Budget" Then
MsgBox "Can't process request"
Me.undo
End If
I also tried entering it as an After Update event in the cmbTotal field, but
this didn't work either. What am I missing?
Thanks