|
-
March 25th, 2001, 06:46 PM
#1
Error number 5
Do anybody knows why this generates a #5 error??
Private Sub Form_Load()
Me.Text1.SetFocus
End Sub
Julio Borges
Rio de Janeiro - Brazil
[email protected]
-
March 25th, 2001, 09:32 PM
#2
Re: Error number 5
Private Sub Form_Activate()
Command1(1).SetFocus 'will work
End Sub
Private Sub Form_Load()
Command1(1).SetFocus ' will not work
End Sub
I think setfocus is not the stuff of load events. Activate, which fires automatically after the laod event, does like setfocus though.
Phil
-
March 25th, 2001, 10:07 PM
#3
Re: Error number 5
If you want it in the load event, then you must place a Me.Show before calling Text1.Setfocus.
-
March 26th, 2001, 07:42 AM
#4
Resolved
Thanks a lot. It worked fine.
Julio Borges
Rio de Janeiro - Brazil
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|