<P ID="edit" class=small>Edited by Chuck Tucker on 01-Jun-02 09:58.</P>Here is my code which initializes a couple of variables and attempts to set focus on the Start command button..

Private Sub Form_Load()
bolChecked = True
bolStarted = False
cmdStart.SetFocus
End Sub

However, VB indicates that the "cmdStart.SetFocus" is not allowed here.

So how do I set the focus upon loading the form?


Well, I answered my own question -- just set the tab index to zero for the cmdStart button! I feel rather stupid for not thinking of it in the first place!