Results 1 to 9 of 9
  1. #1
    Chazcoral is offline Novice
    Windows XP Access 2003
    Join Date
    May 2010
    Posts
    9

    open form Maximized

    I have my database set up to open to a specific form, but the form opens in restore down mode, rather than maximized. How can I make it open maximized?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try

    DoCmd.Maximize

    in the Open (or Load) event and

    DoCmd.Restore

    in the Close (or Unload) event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Flekrad is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    18
    I have used the DoCmd.Maximize
    in Open event and it works great`..
    My question is what does the DoCmd.Restore do and why would it be needed ??

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It would be needed if you don't want other forms maximized. By default, when you maximize one and then close it, others would be maximized (unless their settings prevented it).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Flekrad is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    18
    Cheers for the response, explains why others had opened maximised (occassionally) after I had edited 1 of the forms to max .

  6. #6
    DrChocolate is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Location
    NC
    Posts
    9
    I was trying all sorts of stuff to do this maximizing and here it is in all its simplicity and glory. Thanks for answering the tricky and also these "simple" questions.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help...send chocolate!!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    DrChocolate is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Location
    NC
    Posts
    9
    Paul -- You're very welcome -- if you don't mind my asking (since I probably shouldn't be using this as a way to find traffic directions), where would be the best thread to enter to ask about trouble I'm having with taking the SQL from a Access 2010 query and plugging it into a VBA iteration through the query (strSQL) -- it's being rejected as I type with an error message (asking for a label, a statement, an end of statement)... etc. Thanks for playing traffic cop (and if there's a place I can send you a web link wtihout revealing my identity to the entire world, I'll be glad to show you something chocolate to drool over.

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I would just start a new thread in the appropriate forum (from the sound of it, Programming or Queries). I'll keep an eye out for it, or send me a link to it. You can email me at

    pbaldy
    gmail
    com
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Open Form with information from previous form
    By jheintz57 in forum Forms
    Replies: 9
    Last Post: 03-23-2010, 07:30 AM
  2. Replies: 1
    Last Post: 03-03-2010, 07:29 PM
  3. Replies: 2
    Last Post: 02-26-2010, 08:14 AM
  4. VBA Open Form If - Else
    By Bruce in forum Forms
    Replies: 3
    Last Post: 02-11-2010, 12:57 PM
  5. In a field on a Form, on click open another form
    By jackieagra in forum Programming
    Replies: 1
    Last Post: 03-20-2008, 09: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