I have a form where the user has to enter numbers in four fields. If we assume these number fields to be a, b, c and d. But I need to ensure (b-a) is higher than (d-c). So after update of the last input filed, I wrote the following vba:
Dim a,b,c,d As Double
If (d - c) > (b - a) Then
MsgBox...