In a sub I have an optional parameter declared As TextBox.
How can I check to see if anything was passed to this parameter?
I've tried IsEmpty, IsNull and others and nothing has worked.
If a textbox name is passed, then I want to SetFocus to that textbox (which works when I do pass it a valid textbox name). But, if no textbox name is passed, then I get an error of "object variable or with block variable not set
How can I check to see if anything was passed to this parameter?
I've tried IsEmpty, IsNull and others and nothing has worked.
If a textbox name is passed, then I want to SetFocus to that textbox (which works when I do pass it a valid textbox name). But, if no textbox name is passed, then I get an error of "object variable or with block variable not set