Hi All
I have a form in which when the user types surname in a textbox then focus goes to command button(Enter). when the user presses enter then a form is displayed which shows all the names matches with the surname typed in a textbox. Sometimes the user doesn't press enter button so I want a vba code to force the user to press enter before doing anything else.
I know I can write the vba code on the next control got focus event but not sure how.
I hope anyone can help me in this.
Thanks
Aman
I have a form in which when the user types surname in a textbox then focus goes to command button(Enter). when the user presses enter then a form is displayed which shows all the names matches with the surname typed in a textbox. Sometimes the user doesn't press enter button so I want a vba code to force the user to press enter before doing anything else.
I know I can write the vba code on the next control got focus event but not sure how.
I hope anyone can help me in this.
Thanks
Aman