J
Jake
I know that you can use a controll's setfocus method to give it focus.
However, this fails if the form doesn't have focus. Even if I use error
handling to handle the error message, the focus inside the form still doesn't
change.
I can't find any way to detect what form has focus, and any attempt to
deturmine what controll has focus fails if the form it is on doesn't have
focus.
Also, if a controll contains invalid data (it won't vlidate or the
BeforeUpdate event sets Cancel=True) then an error results when attempting to
change focus in code. Is there a way to cancel then edit programatically
(i.e. the equivilant to hitting "Esc")?
Thanks,
Jacob
However, this fails if the form doesn't have focus. Even if I use error
handling to handle the error message, the focus inside the form still doesn't
change.
I can't find any way to detect what form has focus, and any attempt to
deturmine what controll has focus fails if the form it is on doesn't have
focus.
Also, if a controll contains invalid data (it won't vlidate or the
BeforeUpdate event sets Cancel=True) then an error results when attempting to
change focus in code. Is there a way to cancel then edit programatically
(i.e. the equivilant to hitting "Esc")?
Thanks,
Jacob