S
Stu
dim ctlControl as control
1) MsgBox ctlControl.Name & " OLD: " & ctlControl.oldValue & " NEW: " &
ctlControl.Value
2) If ctlControl.Value <> ctlControl.oldValue Then
In statement 1 above ctlControl.oldValue displays an empty/null value and
ctlControl.Value displays a value of 2.25
Yet statement 2 evaluates as false, i.e., it is NOT true that
ctlControl.Value <> ctlControl.oldValue. I would expect statement 2 to
evaluate to true. Can someone explain why statement 2 evaluates to false
when "oldValue" is null and "value" is 2.25?
1) MsgBox ctlControl.Name & " OLD: " & ctlControl.oldValue & " NEW: " &
ctlControl.Value
2) If ctlControl.Value <> ctlControl.oldValue Then
In statement 1 above ctlControl.oldValue displays an empty/null value and
ctlControl.Value displays a value of 2.25
Yet statement 2 evaluates as false, i.e., it is NOT true that
ctlControl.Value <> ctlControl.oldValue. I would expect statement 2 to
evaluate to true. Can someone explain why statement 2 evaluates to false
when "oldValue" is null and "value" is 2.25?