J
JotKa
Marsh Barton wrote on Feb 3, 2006 in another newsgroup how to determine if a
control currently has the focus:
If my control is named e.g. "btnMyButton", this is (within the form's
module) equivalent to:
If ActiveControl.Name = btnMyButton.Name Then
This works fine; thanks for the hint! Have you got an idea, why the
following does NOT work, though in my opinion it should:
If ActiveControl = btnMyButton Then
This was my first attempt, yielding error "object does not support this
property or method". What property or method of what object does the error
message mean, and why doesn't it work?
By the way: type casting btnMyButton from Access.Button to Access.Control
has not helped.
Thanks for every further hint!
JotKa
control currently has the focus:
If Me.ActiveControl.Name = "particular control name" Then
If my control is named e.g. "btnMyButton", this is (within the form's
module) equivalent to:
If ActiveControl.Name = btnMyButton.Name Then
This works fine; thanks for the hint! Have you got an idea, why the
following does NOT work, though in my opinion it should:
If ActiveControl = btnMyButton Then
This was my first attempt, yielding error "object does not support this
property or method". What property or method of what object does the error
message mean, and why doesn't it work?
By the way: type casting btnMyButton from Access.Button to Access.Control
has not helped.
Thanks for every further hint!
JotKa