Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243

    Unanswered: Maximize application

    When I open my access-project everything goes well, but now I use a VB-program to start my DB.
    Access now uses only 2/3 part of my screen, so I lose parts of my forms.
    Is there any way I can force Access to run maximized ?

    Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    here you go

    DoCmd.Maximize

  3. #3
    Join Date
    Oct 2003
    Posts
    2

    Thumbs up Re: Maximize application

    Originally posted by artemide
    When I open my access-project everything goes well, but now I use a VB-program to start my DB.
    Access now uses only 2/3 part of my screen, so I lose parts of my forms.
    Is there any way I can force Access to run maximized ?

    Thanks
    create an Autoexec macro if you do not have one already
    make the first line read

    ACTION COMMAND
    RunCommand AppMaximize

  4. #4
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243

    Re: Maximize application

    Originally posted by mstancer
    create an Autoexec macro if you do not have one already
    make the first line read

    ACTION COMMAND
    RunCommand AppMaximize
    OK, so far so good.
    Access is maximized, including all my forms.
    But I want my forms in the size I designed them, because I made some messageboxes myself and now they fill the screen.

    How can I set the forms back to normal, but keep my application maximized ?

    Thanks

  5. #5
    Join Date
    Oct 2003
    Posts
    2

    Thumbs up

    Open one of your forms and click on the forms (on open) event

    click the builder ... icon to the right and select code builder

    in the VB window type

    DoCmd.MoveSize 2680, 2900 , 500, 500

    close the vb window and then save the form now whenever you open the form it will be located in this position see below for full syntax

    Right The new horizontal position of the window's upper-left corner, measured from the left edge of its containing window. Enter the position in the Right box in the Action Arguments section of the Macro window.
    Down The new vertical position of the window's upper-left corner, measured from the top edge of its containing window.
    Width The window's new width.
    Height The window's new height.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •