Check for input in optional form variable
Posted on 2014-03-05
I have a function with some arguments, and one of them is optional and of the "form" variable type.
Public Function MyFunction(Argument1 as Boolean, Optional TheForm as Form) as String
If TheForm is null Then
"TheForm is null" always returns false, whether or not anything has been entered for that argument.
Is there an explicit way the to test whether something was entered for TheForm argument, without using error trapping, or using a variant variable type? That should be possible, right??