My program doesn’t process past this statement:
Dim valid as Boolean
If MyComboBox.Value Is Not Null Then valid = true
Why not?
If I try to step through using stop points the program does not proceed to the next step, but the form keeps running as if no vba code is being run. This is annoying because it means the form can still be used as if nothing is wrong but the intended behavior is not occuring.
The IS keyword is used for testing the state of objects and you want to test a value. The following works fine:
See the following link for a more detailed description:
Nothing? Empty? Missing? Null?