General information
Category:
Coding, syntax & commands
>Does someone know how I can still execute Gotfocus if the control already has focus to start with?
>
>
>I need to put a message for the user when they are in a certain control. So I put code in the GotFocus event. Trouble is GotFocus is not is not fired if the control is already active and the user skips to the next record. So I decided to put code in the refresh event. Now I only want to put the message onthe status if the user is in this particular control. So I use object.activeControl to check the control is actually active. But activeControl.property generates an error when the form is first launched. But works fine there after. Any ideas why and how to resolve this. Or any better ideas of achieving this?
>
>Thanks.
Hi
You can call Gotfocus from code.
This.gotfocus
Mo
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only