-
Passing 2 arguments
Hello!
I am passing two arguments to a sub
Argform as form, cboProd as comboBox
an in the subroutine
I am writing Argform.cboProd.clear and am failing
Apparently, it's looking for an actual combobox with
that name cboProd on the form itself..
Any ideas?
-
The combo in your sub has a reference to the form built in to it (as with all controls passed as parameters or stored in variables), so you should NOT use a form when you reference it, even if it is the correct form.
Change "ArgForm.cboProd.clear" to "cboProd.clear", and everything will be fine.
-
...
Thanks much, my friend...
Thanks