andrewf10
Registered User.
- Local time
- Today, 22:08
- Joined
- Mar 2, 2003
- Messages
- 114
I have a 'cmdFind' command button which can be used to search any field, depending on which textbox the user has the focus on.
But if another object such as a command button has the focus instead and the user doesnt notice this, a message appears:
The control 'cmdFIND' the macro is attempting to search can't be searched.
This doesn't appear to have an error number so is there any way that I can check whether a textbox in general has the focus and if not, warn the user to select a textbox to search...before the Find box appears?
I've tried using a GoToControl but this obviously jumps to the same textbox every time. Also, why does the 'Replace' tab have to appear as well?
Appreciate any help as always
Thanks
But if another object such as a command button has the focus instead and the user doesnt notice this, a message appears:
The control 'cmdFIND' the macro is attempting to search can't be searched.
This doesn't appear to have an error number so is there any way that I can check whether a textbox in general has the focus and if not, warn the user to select a textbox to search...before the Find box appears?
I've tried using a GoToControl but this obviously jumps to the same textbox every time. Also, why does the 'Replace' tab have to appear as well?
Appreciate any help as always
Thanks