Question on Reserved Words

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

This is a silly question, but is there a reserved word to refer to the
current control other than using .Activecontrol. VB uses Me to refer to the
current control, but Me refers to the form in Access. Any help would be
greatly appreciated.

Thank you,
 
Brandon said:
This is a silly question, but is there a reserved word to refer to the
current control other than using .Activecontrol. VB uses Me to refer to the
current control, but Me refers to the form in Access. Any help would be
greatly appreciated.


What? You're looking for a shorter keyword??
You should use Me.ActiveControl to refer to the control on
the form that has the focus. Or Forms!anyform.ActiveControl
to refer to the control on another form that will have the
focus when the form next becomes active.

There is also Screen.ActiveControl to refer to the control
that has the focus on the form that is active, but that form
may not be the one you might think it is.
 
Marshall,

I was looking for a reserved word to use I.e. "ME" to stand for the control.
It would be helpful in writing the code in the controls event if I could use
Me.property instead of activecontrol.property. In order to reduce coding, I
have coded the events with activecontrol.property and pasted them where
needed, but for the most part, I have created classes to handle processing as
most of the forms use the same procedures.

I was pretty sure there wasn't a reserved word.

Thank you for your answer.
 
Back
Top