Results 1 to 3 of 3
  1. #1
    Deutz is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    51

    Controlling subform resize

    Hi and thanks in advance,



    I'm using Access 2003 and have a form with a subform that always displays the same number of rows and columns in datasheet view.

    Wondering if there is a way to display the subform without having to leave an empty space to the right of it and below it in the subform container to allow for scroll bars.

    If I size the subform container in design view to fit the subform exactly, which is how I want it to look, the subform resizes when I update the underlying table and requery it with new data and it ends up with vertical and horizontal scroll bars that hide the bottom row and some of the right-most column. I basically want to freeze the column widths and row heights so the scroll bars do not appear and hide the data.

    Thanks
    Deutz

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Do you have the subform ScrollBars property set to Neither? Will never have more records than can be displayed in the sized subform - no need for vertical scroll?
    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
    Deutz is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    51
    Yes Scrollbars property is set to neither.

    Someone just suggested to me that I set the Can Grow property to No for the container and subform textboxes and detail section and that has seemed to work so thanks for your reply June7.

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

Similar Threads

  1. Controlling Subform from Main Form
    By SteveF in forum Forms
    Replies: 5
    Last Post: 07-01-2011, 05:32 PM
  2. Resize form automatically
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 10:24 PM
  3. Controlling autonumber
    By Patience in forum Access
    Replies: 3
    Last Post: 06-22-2010, 04:11 AM
  4. Resize Switchboard form
    By smikkelsen in forum Forms
    Replies: 3
    Last Post: 04-03-2010, 06:59 AM
  5. Checkbox controlling text box
    By chuckduarte in forum Forms
    Replies: 0
    Last Post: 10-21-2008, 10:45 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