fishysheep
Programmer
Hi
This should be so easy but it's got me banging my head against the wall. I need to pass in the name of a control to a procedure. I've tried
// call proc - I've tried all the following, the call
// is from the click event of the text box.
whatever activecontrol
call whatever(activecontrol)
whatever txtA
private sub whatever(t as textbox)
msgbox t.name
end sub
I either get type mismatch errors in the call or invalid oject in the whatever proc.
Mike
This should be so easy but it's got me banging my head against the wall. I need to pass in the name of a control to a procedure. I've tried
// call proc - I've tried all the following, the call
// is from the click event of the text box.
whatever activecontrol
call whatever(activecontrol)
whatever txtA
private sub whatever(t as textbox)
msgbox t.name
end sub
I either get type mismatch errors in the call or invalid oject in the whatever proc.
Mike