A
Armand via AccessMonster.com
I would like to use the same code to execute on events of several forms.
I would like to be able to use the name of the Form as a variable in my code
so the code could adapt it self to the form.
Ex:
Function x ([Name of the form] as ?)
'my code...
[Name of the form]!Controlx.enabled = true
'my code...
End Function
I tryed to declare the form as an object and replace the name of the form by
the name of the object but it doesn't work.
Anyone could help?
I would like to be able to use the name of the Form as a variable in my code
so the code could adapt it self to the form.
Ex:
Function x ([Name of the form] as ?)
'my code...
[Name of the form]!Controlx.enabled = true
'my code...
End Function
I tryed to declare the form as an object and replace the name of the form by
the name of the object but it doesn't work.
Anyone could help?