Form load error (1 Viewer)

Mina Garas Daniel

Registered User.
Local time
Today, 01:07
Joined
Jul 21, 2017
Messages
66
Hi everybody
I face a problem that don't understand it
I create unbound form as a navigation form with command buttons
in load event i use only docmd.maximize code to maximize this form full screen

the problem is when open this form i got error as attached file
can anybody help me

thanks
Capture.PNG
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Yesterday, 18:07
Joined
Feb 28, 2001
Messages
27,216
You said you wanted to use DoCmd.Maximize and that is actually quite a reasonable thing to do. But how you do it makes all the difference. All I can suggest is to look at the form in design mode, examine its properties, and pick the Events tab. Then look at the OnLoad property, which must blank or one of three possible values: [Event Procedure], the name of a stored Macro, or some kind of expression that involves the name of a user-defined function. The linked reference includes an Event Procedure as its example.


The error message suggests that you did not have any of the three non-blank options but not a blank either. What is actually in that slot? I.e. HOW did you attempt to do the Maximize?
 

Users who are viewing this thread

Top Bottom