Results 1 to 3 of 3

Thread: Access Workspace size

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122

    Post

    Hi,

    maybe this helps:

    Code:
    Dim width As Long
    Dim height As Long
    
    DoCmd.OpenForm "Form1", acNormal
    DoCmd.Maximize
    
    width = Forms("Form1").WindowWidth
    height = Forms("Form1").WindowHeight
    
    DoCmd.Restore
    DoCmd.Close
    
    MsgBox "Width = " & width & ", Height = " & height
    The determined width and height don' count that windows have a title and a border. To be on the save side, you can use

    Code:
    width = Forms("Formular1").InsideWidth
    height = Forms("Formular1").InsideHeight
    instead.

    Happy New Year
    Roger

  2. #2
    Junior Member
    Join Date
    Jan 1999
    Location
    Pierre, SD USA
    Posts
    23

    Post

    Thanks. I'll give it a try.

  3. #3
    Junior Member
    Join Date
    Jan 1999
    Location
    Pierre, SD USA
    Posts
    23

    Post

    Does anyone know how to get the width and height of the workspace in Access? I am not referring to a database workspace, but rather to the desktop space, within Access' borders and toolbars, where Access' child windows (forms, tables, etc.) appear.

    I am trying to position and size Access forms using the docmd.movesize command, but I need to keep the forms within Access' borders.

Posting Permissions

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



Click Here to Expand Forum to Full Width