D
Design by Sue
We’d like to store the reference (for lack of a better word) of a control in
a variable for future use. For example:
Me.Suffix1 is a text box on a form so things like Me.Suffix1.SetFocus will
set the focus to the text box. When we loose focus on this text box we’d
like to do some like:
ctrLastFocus = Me.Suffix1
where in a module we have
Public ctrLastFocus as Control
Then elsewhere we could write something like: ctrLastFocus.SetFocus
Of course this doesn’t work as Me.Suffix1 isn’t the control, but the value
of it. How do you do this?
Thanks
Sue
a variable for future use. For example:
Me.Suffix1 is a text box on a form so things like Me.Suffix1.SetFocus will
set the focus to the text box. When we loose focus on this text box we’d
like to do some like:
ctrLastFocus = Me.Suffix1
where in a module we have
Public ctrLastFocus as Control
Then elsewhere we could write something like: ctrLastFocus.SetFocus
Of course this doesn’t work as Me.Suffix1 isn’t the control, but the value
of it. How do you do this?
Thanks
Sue