Results 1 to 8 of 8
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316

    How to Make a Form Sizable


    I have a form with a List Box that I want to open in Dialog mode. It is normally a small form, however, sometimes it may contain a larger List Box than normal. As a minimum, I would like to give the operator the option of making the form bigger. If possible, I would also like to give the user the option of making the List Box bigger.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by EddieN1 View Post

    ...I would like to give the operator the option of making the form bigger...
    Can't do that if you're going to open it in Dialog Mode! The question, I guess, is what is your reason for using this mode? Maybe we can come up with a workaround to accomplish all of your goals.

    Linq ;0)>

  3. #3
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    It doesn't have to be in dialog mode. I just want the operator to answer these form before going anywhere else.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You set Dialog mode by code in the DoCmd.OpenForm method? This is useful if you want to open form and suspend code execution until form closes. Otherwise, the Modal property setting will prevent user moving to another form. However, I find Modal and Popup settings an aggravation when debugging.

    How will the user 'resize' form? Grab and Drag corner? or button click? Resizing the listbox would mean setting the Height property.
    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.

  5. #5
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    I would like to have them grab and drag corner.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Then set the BorderStyle property to Sizable. However, that will do nothing for the listbox.
    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.

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You can set the Modal and Popup Properties in the Property Pane of the Form in question, then open it with

    Code:
    DoCmd.OpenForm "YourTableName", , , , , acWindowNormal


    and the Form can be re-sized and, as June7 said, the Form will have to be dealt with before moving elsewhere .

    Linq ;0)>

  8. #8
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    Found it... in the Load Event, put...

    Private Sub Form_Load()

    ' Right, Down, Width, Height
    DoCmd.MoveSize 2040, 1260, 8000, 8500

    End Sub

    Note Each measurement is in inches or centimeters, depending on the regional settings in Windows Control Panel.

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

Similar Threads

  1. help. too many fields to make a form !!!
    By amd711 in forum Forms
    Replies: 2
    Last Post: 10-23-2012, 08:47 AM
  2. Replies: 3
    Last Post: 09-01-2011, 10:43 PM
  3. Form Sizable Format On Open
    By Tomfernandez1 in forum Forms
    Replies: 0
    Last Post: 05-19-2011, 10:29 AM
  4. Make form that will run a query
    By newtoAccess in forum Access
    Replies: 1
    Last Post: 11-29-2010, 09:01 AM
  5. How to make form
    By krishna79 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:32 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