Ok when i set TxtName.Setfocus in a command button it works just fine but when I put into form load it gives an error? Can anyone plz tell me what i am doing wrong
Private Sub cmdAdd_Click(Index As Integer)
txtLastName.SetFocus
End Sub
the above works fine but the below doesnt
Private Sub Form_Load()
txtLastName.SetFocus
End Sub
thanks in advance
Private Sub cmdAdd_Click(Index As Integer)
txtLastName.SetFocus
End Sub
the above works fine but the below doesnt
Private Sub Form_Load()
txtLastName.SetFocus
End Sub
thanks in advance