|
-
Oct 26th, 2004, 04:52 PM
#1
Thread Starter
New Member
Illegal function call setting focus
viewcustomers.Command1.SetFocus
Any idea why this is generating an illegal function call? This statement is in the form_load event. The form is being shown modally from my main form so viewcustomers.show generates an error that it is already being shown. This is probably simple and I'm just not getting it (Been up all night lol). However I have started at it long enough. Any tips would be greatly appreciated.
Last edited by Mad Coder; Oct 26th, 2004 at 05:08 PM.
-
Oct 26th, 2004, 04:58 PM
#2
Frenzied Member
Move it out of the form load event into the form activate event. It may be the command button is not there to set the focus on as it is BEING loaded.
-
Oct 26th, 2004, 05:08 PM
#3
Thread Starter
New Member
That did it. Thanks. Sometimes I don't care why so much as I want to move on This is one of those cases lol.
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
|