Switchboard form is opening but immediately gets minimized

G

Guest

I have a command button to open up the switchboard after login. But when I
login, the switchboard opens then minimizes automatically. How do I get it
to open properly?
 
G

Guest

Hi Tia

Open the form in design view.
Right click on the grey section of the form (below to space where you put
your buttons, box, lists, etc)
On the dropdown box select Event
Select On-Open
Click the build options (three dots on the right)
Select Code


You will see this



Private Sub Form_Open(Cancel As Integer)

End Sub



Insert one line of code (DoCmd.Maximize)

So that your code looks like this



Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub



Click Save and close your form.
When you open it again it "should" stay maximixed.

Hope this helps
 
G

Guest

Thanks, it worked.
--
TIA


Wayne-I-M said:
Hi Tia

Open the form in design view.
Right click on the grey section of the form (below to space where you put
your buttons, box, lists, etc)
On the dropdown box select Event
Select On-Open
Click the build options (three dots on the right)
Select Code


You will see this



Private Sub Form_Open(Cancel As Integer)

End Sub



Insert one line of code (DoCmd.Maximize)

So that your code looks like this



Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub



Click Save and close your form.
When you open it again it "should" stay maximixed.

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Switchboard Minimized 4
login form won't close 2
Access Switchboard error message 1
Controlling another switchboard 2
Access Switchboard & Form Issue 2
SWITCHBOARD 1
Opening View of Database 2
Form opening gigantic! 2

Top