R
RexAbandon via AccessMonster.com
I have a form with several labels with a function associated to the On Click
event. I want to pass the label control to the function in the following
manner. (Simplified as follows)
=SampleFunction([Form],[Control])
Function SampleFunction(frm as Form, ctl as Control)
Msgbox frm.Name
Msgbox ctl.name
End Function
I tried using [ActiveControl] instead of [Control] but it will not work for a
Label as well.
Any help is appreciated.
Thanks,
Rex
event. I want to pass the label control to the function in the following
manner. (Simplified as follows)
=SampleFunction([Form],[Control])
Function SampleFunction(frm as Form, ctl as Control)
Msgbox frm.Name
Msgbox ctl.name
End Function
I tried using [ActiveControl] instead of [Control] but it will not work for a
Label as well.
Any help is appreciated.
Thanks,
Rex