Originally posted by mstuehler
If you use Nucleus' code (which is always a good idea), you can add the following to prevent the user from using [tab] to get to the button:

Private Sub Command1_GotFocus()

[some other object].SetFocus

End Sub

In other words, if the button you don't want the user to get is Command1, you can deflect the focus to another object (for example, Command2) using Command2.SetFocus in the GotFocus event of Command1.

Hope this helps.

Cheers!
It works!!! thank you.