In LostFocus sub, can I determine which button was pressed?

M

Mark Parent

I have a form with several fields and several command buttons. The coding
works fine when I leave a field (LostFocus) to check for validity, but I have
one "Finished" command button that tells me I don't need to bother checking
the field.

In the LostFocus sub for a particular field, can I determine which of
several command buttons (or keystrokes for that matter) caused the field to
lose focus?
 
D

Douglas J Steele

I don't believe so. The command button you're clicking on doesn't become
active until after the LostFocus event has been processed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top