Results 1 to 3 of 3
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Maximizing Access Window

    Hi, I do know how to maximize a form (or a report, I guess) docmd.maximize, but in this case I want to maximize the entire Access application to full screen and I can seem to find any code to help me. I tried this (which may be for Excel), but it had no effect.

    Code:
    ActiveDocument.ActiveWindow.WindowState = wdWindowStateMaximize
    Actually it closed my application when I used it. I guess it got confused.

    What I am doing is opening another Access application and closing the current one. I scraped most of this off another site, and it works just fine, except the window opens in a normal state, not a maximized state.

    Code:
        Dim FilePath As String
        Dim FileName As String
        Dim FilePathName As String
        Static acc As Access.Application
        Dim db As DAO.Database
        Dim strDbName As String
        
        FilePath = Application.CurrentProject.Path
        FileName = "CCS_CSB_Reports_3401.accdb"
        FilePathName = FilePath & "\" & FileName
        
        strDbName = FilePathName
        Set acc = New Access.Application
        acc.Visible = True
        Set db = acc.DBEngine.OpenDatabase(strDbName, False, False)
        acc.OpenCurrentDatabase strDbName
        db.Close
        Set db = Nothing
        Application.Quit
    It's a very small thing, but visually it would look much nicer if it just flipped to a new screen. I can live with it as it is. It's become more a matter of curiosity.

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,931
    have you tried

    DoCmd.RunCommand acCmdAppMaximize

  3. #3
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Of course not, Splendid One.

    Exactly what I needed, thanks.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-05-2016, 07:31 PM
  2. Minimizing and Maximizing Ribbon in 2007
    By newbieX in forum Forms
    Replies: 3
    Last Post: 09-12-2014, 01:18 PM
  3. Replies: 3
    Last Post: 10-23-2013, 08:11 AM
  4. Access 2010 & Window 7
    By SlowPoke in forum Access
    Replies: 1
    Last Post: 12-05-2010, 02:56 AM
  5. Access Window On top
    By Jas_The_Ace in forum Programming
    Replies: 0
    Last Post: 02-28-2009, 04:28 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