T
Tony Williams
Can someone tell me what's wrong with this code I keep getting error message
saying expected end of statement
Private Sub txtDomfactot_AfterUpdate()
If ([txtDomfacsole] + [txtDomfacpart]) <> [txtDomfactot] Then
MsgBox "Row 1 does not add up" & vbCrLf "It should be
[txtDomfacsole]+[txtDomfacpart]", vbExclamation, "Calculation Error"
End If
End Sub
TIA
Tony
saying expected end of statement
Private Sub txtDomfactot_AfterUpdate()
If ([txtDomfacsole] + [txtDomfacpart]) <> [txtDomfactot] Then
MsgBox "Row 1 does not add up" & vbCrLf "It should be
[txtDomfacsole]+[txtDomfacpart]", vbExclamation, "Calculation Error"
End If
End Sub
TIA
Tony