Emohawk
What a wicked mullet...
- Local time
- Today, 19:02
- Joined
- Mar 14, 2002
- Messages
- 79
Is there a generic way to pass the reference of a control to a module(Like you use "Me!" for the current form)?
What I am doing is calling a sub that executes everytime a user enters or exits a field passing a refence of the current control to the module. I.e
private sub my_Control_GotFocus
RunModule("Reference of my_Control object goes here")
end sub
private sub my_Control_LostFocus
RunModule("Reference of my_Control object goes here")
end sub
I am trying to get around placing the name of each control in the call as the module will be used by up to 70 different controls.
Cheers
What I am doing is calling a sub that executes everytime a user enters or exits a field passing a refence of the current control to the module. I.e
private sub my_Control_GotFocus
RunModule("Reference of my_Control object goes here")
end sub
private sub my_Control_LostFocus
RunModule("Reference of my_Control object goes here")
end sub
I am trying to get around placing the name of each control in the call as the module will be used by up to 70 different controls.
Cheers