Using chr(27) in VB

plucnik

Registered User.
Local time
Today, 04:31
Joined
Nov 11, 2003
Messages
34
Is this possible? I want to auto close a Find Form (ctrl-F) after doing a search on a text box value on a form. There doesn't seem to be a way to do this unless you create a custom search form. I had a thought. Since pressing the ESC key closes an open Find Form, is it possible to insert a chr(27) somewhere into the Event function (maybe in the Current field) of a form to simulate pressing the ESC key? Thanks for the help!
 
Sendkeys

Something like this?

SendKeys "{ESC}", True
 
Yes! I'll give that a try. Thanks :D
 

Users who are viewing this thread

Back
Top Bottom