Results 1 to 7 of 7
  1. #1
    Joakim N is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Oct 2016
    Posts
    79

    Maximize only one form

    Hi,
    If I use DoCmd.Maximize all forms are maximized in size. Is it possible to only maximize one form so it covers the entire screen? Maybe one way is to use DoCmd.MoveSize where I use an API to get the size of the screen. I haven't tried yet if that works. Is there an easier way to maximize size of only one form?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    its all or nothing, you cant max 1 form.

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    In the form_load event
    Code:
    docmd.maximize
    in the form_close event
    Code:
    docmd.restore

  4. #4
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    You can maximize certain forms and not others if the others have their PopUp property set to True.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    .Restore shows the form at non-max/non-min ,size.

  6. #6
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    My test for .maximize and .restore was on overlapping windows and worked perfectly. I never use tabbed documents, so don't know how it works there.

  7. #7
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Good point. My test was for tabbed.

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

Similar Threads

  1. How to always maximize form when visible?
    By newbieX in forum Programming
    Replies: 5
    Last Post: 05-18-2015, 03:49 PM
  2. Replies: 9
    Last Post: 06-03-2014, 09:33 AM
  3. Replies: 6
    Last Post: 02-08-2014, 10:04 AM
  4. docmd.maximize (2003 to 2010)
    By redbull in forum Forms
    Replies: 1
    Last Post: 08-02-2012, 05:28 PM
  5. maximize switchboard upon opening
    By zrawe16 in forum Access
    Replies: 4
    Last Post: 05-27-2011, 12:26 PM

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