Hello,
I have a form with two numbers that I compare when a button is clicked. If they are not equal then a text box will pop up, but occasionally a text box pops up even though the numbers equal. Below is the script...
If Me.FormTotal <> Me.TxnAmount Then
MsgBox "Line Items must total to transaction amount!"
Me.AcctgTxnAmt.SetFocus
Cancel = True
Exit Sub
End If
Thanks!
I have a form with two numbers that I compare when a button is clicked. If they are not equal then a text box will pop up, but occasionally a text box pops up even though the numbers equal. Below is the script...
If Me.FormTotal <> Me.TxnAmount Then
MsgBox "Line Items must total to transaction amount!"
Me.AcctgTxnAmt.SetFocus
Cancel = True
Exit Sub
End If
Thanks!