Hi all
I have a sub that I cant get the syntax right on.
I am trying to get this to execute from a module
but I am having trouble referencing the object on the form
the sub should be called like this
call an(me,lblMyLabel,False) '(to hidethe label)
call an(me,lblMyLabel,False) '(to show the label)
___________________________________________
Sub an(formname As Form, myObject As Object, switch As Boolean)
formname![myObject].Visible = switch
End Sub
___________________________________________
(this isnt the whole sub obviously, just trying to keep things simple)
can anyone offer any enlightenment?
I have a sub that I cant get the syntax right on.
I am trying to get this to execute from a module
but I am having trouble referencing the object on the form
the sub should be called like this
call an(me,lblMyLabel,False) '(to hidethe label)
call an(me,lblMyLabel,False) '(to show the label)
___________________________________________
Sub an(formname As Form, myObject As Object, switch As Boolean)
formname![myObject].Visible = switch
End Sub
___________________________________________
(this isnt the whole sub obviously, just trying to keep things simple)
can anyone offer any enlightenment?