yippie_ky_yay
Registered User.
- Local time
- Today, 09:17
- Joined
- Jul 30, 2002
- Messages
- 338
Hello all,
I have a small problem with pre-loaded forms. In my switchboard form, I pre-load another form using the following code:
DoCmd.OpenForm "myForm", , , , , acHidden
This would work perfectly except for one thing - all of my forms have either "DoCmd.Maximize" or "DoCmd.Restore" in their Activate events depending on how I need them. Because the Activate code gets executed, the form remains behind my Startup Form.
Is there another way I could pre-load my forms or is there a way to load a form and tell it to ignore its code? The reason why I like to size the form in its activate event is because most forms can be accessed in a variety of ways therefore, a "Forms!myForm!txtField.SetFocus - DoCmd.Restore" solution would be a huge task.
Thanks in advance,
-Sean
I have a small problem with pre-loaded forms. In my switchboard form, I pre-load another form using the following code:
DoCmd.OpenForm "myForm", , , , , acHidden
This would work perfectly except for one thing - all of my forms have either "DoCmd.Maximize" or "DoCmd.Restore" in their Activate events depending on how I need them. Because the Activate code gets executed, the form remains behind my Startup Form.
Is there another way I could pre-load my forms or is there a way to load a form and tell it to ignore its code? The reason why I like to size the form in its activate event is because most forms can be accessed in a variety of ways therefore, a "Forms!myForm!txtField.SetFocus - DoCmd.Restore" solution would be a huge task.
Thanks in advance,
-Sean