Results 1 to 5 of 5
  1. #1
    GeorgeJ is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    67

    Have a form of a specific size display in that size rather than the whole work area

    Hello,



    I create a form in the design view. The form has a specific size in the Design View, but when I run the form, either by double clicking on it or through code, the form occupies the entire part of the screen used for forms, tables, queries, etc. I have tried setting the autoresize property to "no" but that doesn't help. A book on Access VBA mentions something called Docmd.MoveResize but I can't find any examples of its use, even in the online database connected to the help button in Access VB. Any help would be greatly appreciated.

    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    Is the db set for Tabbed Documents? Try Overlapping Windows.

    File > Options > Current Database > Document Window Options
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    GeorgeJ is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    67
    Thank you. Thanks to your suggestion, I'm half way (maybe) to where I want to be. I changed the option to "Overlapping Windows" as you suggested.


    Here is where I am now.


    When I open the form, it no longer occupies the whole works area, but definitely occupies an area larger than the size suggested by viewing the window in design mode. I double-click the form, it displays, and it now has a close button and I now am able to resize it while it is displaying, but then I close it and when I reopen it is back to its original size (too-big) size. My goal is to have the form occupy the same amount of real estate as indicated by viewing it in Design Mode, and not give the user the option of moving it or resizing it.

    Any suggestions?

    Any way to have the form's display location and size controlled by VBA code?

  4. #4
    GeorgeJ is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    67
    I'm adding to my previous reply, in case this may be helpful to other newbies perusing this forum. I just discovered the other half of the riddle.

    I followed June7's suggestion:

    File > Options > Current Database > Document Window Options then set for "Overlapping Windows"


    After I did that I noticed that when I view a form in the design mode the form appears within a window which can be resized ( this wasn't the case before I made the modification that June7 suggested). If I resize this window to just accommodate the form, then when I show the form it will appear the size of the window.

    Problem Solved.

    Thanks

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    Also, the BorderStyle property determines if the form is resizable in form view. And the Moveable property is self-explanatory.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Form size
    By Sheba in forum Access
    Replies: 6
    Last Post: 08-06-2014, 09:23 PM
  2. size of the form
    By azhar2006 in forum Forms
    Replies: 5
    Last Post: 03-24-2014, 06:14 AM
  3. Replies: 2
    Last Post: 03-20-2013, 04:25 PM
  4. Replies: 3
    Last Post: 07-19-2012, 09:27 AM
  5. Replies: 0
    Last Post: 04-22-2011, 04:58 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