Using tab/enter to move

eyalco

Registered User.
Local time
Today, 05:39
Joined
Jul 24, 2007
Messages
50
I'm trying to contol tab/enter so that when user presses it in a sub form, there's a msgbox asking him if he wants to move to another line or from the subform to the form itself.
How do I do it please?
Thanks.
 
Program the lostfocus events of the controls on the subform
 
Thanks.
How do I recognize the tab button in the code?
 
Oops,

do not program the lost focus event but the keypress event of each control on your subform
Then check the character if it matches vbTab.
 

Users who are viewing this thread

Back
Top Bottom