Results 1 to 5 of 5
  1. #1
    zrawe16 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    20

    maximize switchboard upon opening


    I've created a database that opens showing a switchboard to access forms within. When I open the database the switchboard is not mamimized to show the full switchboard screen. This is a small issue, but I'd like to get it set up correctly. I hit the maximize button and then save the database, but when I close and reopen the database it's back to the same. Thanks for any input......

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by zrawe16 View Post
    I've created a database that opens showing a switchboard to access forms within. When I open the database the switchboard is not mamimized to show the full switchboard screen. This is a small issue, but I'd like to get it set up correctly. I hit the maximize button and then save the database, but when I close and reopen the database it's back to the same. Thanks for any input......
    In the load/close event of the form, add this code:

    Code:
    Private Sub Form_Open(Cancel As Integer)
       DoCmd.Maximize
    End Sub
    
    
    Private Sub Form_Close()
       DoCmd.Restore
    End Sub

  3. #3
    zrawe16 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    20
    Is there a way to do this w.out code? I am not familiar w. where to copy and paste the code you provided. Thanks for your help.

  4. #4
    nicknameoscar is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2011
    Location
    Earlysville, VA
    Posts
    91

    If you are willing to try

    I use Access 2000 and Access 2007 (work and that is where I am now) so I am not totally sure the below steps are a one for one match.

    1. Open the switchboard form in design mode.
    2. Right click the rectangle in the extreme upper left corner of the form.
    3. Select Properties (at the bottom of the list).
    4. Click on the Event tab.
    5. Double click in the box next to "On Open". "[Event Procedure]" should appear.
    6. Click on the box with the ... to the right. You should now be in the VBA editor. You should see:
    Code:
    Private Sub Form_Open(Cancel As Integer)
       
    End Sub
    Now make it look like this:

    Code:
    Private Sub Form_Open(Cancel As Integer)
       DoCmd.Maximize
    End Sub
    7. Click on the diskette icon in the upper left corner in the VBA editor OR close the VBA editor and click the diskette icon in the Access GUI. You are saving what you just did.

    8. Test it
    9. Repeat the above for the On Close event.

    Hopefully you will find it fun. You are opening an entirely new world of capabilities by learning VBA.

  5. #5
    zrawe16 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    20
    Got it to work. Thanks!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 15
    Last Post: 04-11-2015, 08:15 AM
  2. Switchboard help? Please
    By MrT1993 in forum Access
    Replies: 13
    Last Post: 02-13-2011, 01:15 PM
  3. Switchboard
    By mwabbe in forum Access
    Replies: 4
    Last Post: 08-26-2010, 07:17 AM
  4. Main Switchboard
    By mamig in forum Access
    Replies: 3
    Last Post: 01-27-2010, 09:07 AM
  5. Switchboard Help
    By Danzivar in forum Access
    Replies: 1
    Last Post: 12-15-2006, 03:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums