I have a button to calculate trip information. I can't get the message box to pop up in the following code. Can anyone tell me why?
If [odometer end] and [odometer start] are null and I click the calculate button nothing happens, I want the message box to appear.
here is the code I am using:
If [odometer_start] = Null And [length_of_trip] = Null Then
MsgBox "Note: Two of the Three values are needed to calculate the mileage.", vbExclamation
Else
[odometer_end] = [odometer_start] + [length_of_trip]
End If
The else portion works as I would expect.
Thanks for your help
If [odometer end] and [odometer start] are null and I click the calculate button nothing happens, I want the message box to appear.
here is the code I am using:
If [odometer_start] = Null And [length_of_trip] = Null Then
MsgBox "Note: Two of the Three values are needed to calculate the mileage.", vbExclamation
Else
[odometer_end] = [odometer_start] + [length_of_trip]
End If
The else portion works as I would expect.
Thanks for your help