I am Writing a program and I want it to setfocus on a text box when the form loads. when I run the program it gives me a invalid Procedure call or argument.
the text box it called "txtReg"
here is my code
can anyone tell me what is wrong with this code and how I can fix it so that it sets the focus on the text box when the form loads.
Thanks
David
________________________________________
I help Where I can, If My advice Dont work Or Is Wrong then tell Me
the text box it called "txtReg"
here is my code
Code:
Private Sub Form_Load()
txtReg.SetFocus
End Sub
can anyone tell me what is wrong with this code and how I can fix it so that it sets the focus on the text box when the form loads.
Thanks
David
________________________________________
I help Where I can, If My advice Dont work Or Is Wrong then tell Me