Results 1 to 7 of 7
  1. #1
    iordanis is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2024
    Posts
    13

    Subform resizing BUG?

    Hi!
    1) I use some tab pages to organize my master/detail data, so i have a subform in each one.
    2) The whole tab control uses Both in Horizontal and Vertical anchoring, so it uses the whole form's size.
    3) Sometimes, depending on my data, I need to resize the subforms in a tab page.

    But, when i decrease the current subform's height using VBA, it doesn't decrease its as displayed in Form View, but as it was set in DESIGN TIME (!). So, in a fairly large form where all controls cover enough space, if I decrease the subform's height, it could go negative, although its displayed size is still enough.

    Use the attached file, resize the form enough and then use the [- Child1 height] button multiple times (hold Enter), to reproduce the problem.

    IS THIS STUPID BEHAVIOR A BUG?
    (I use Access 2013. I don't know if the same problem still exists in newer versions)



    TIA.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why do this? This is why forms have scroll bars.
    With + sizing subform container grows until it covers buttons and continuing expands the tab control.
    Then - sizing until form almost disappears and triggers error.
    Tested with Access 2010.
    I will have to try on other PC with 2021.
    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
    iordanis is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2024
    Posts
    13
    Isn't Access' behavior strange?

    The reason I organize controls this way, is that I want everything to be on-sight when the user displays a tabpage, rather than scrolling up/down like in a webpage.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why would you consider Access's behavior strange?

    Not understanding what you mean by "everything to be on-sight". What is "everything" - all records?

    Maybe providing db with actual implementation of this method could clarify.
    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
    iordanis is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2024
    Posts
    13
    I mean, all fields of a detail record.

    Strange it is, because using Horiz/Vert anchoring, the actual height/width of a control changes. If I then choose to increase/decrease it by code, shouldn't it use the displayed height/width and not the one in design time?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Okay, now I see the issue. I had used + Size before - Size.

    I really think "it is what it is" and beyond my interest to pursue any further.

    Good luck.
    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
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    that is not a BUG.
    if you resize it using VBA, resize the rest using VBA.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-20-2017, 12:19 PM
  2. Replies: 3
    Last Post: 09-23-2016, 09:15 AM
  3. Replies: 2
    Last Post: 08-26-2016, 10:30 AM
  4. Resizing master form when subform resizes
    By Lukael in forum Programming
    Replies: 9
    Last Post: 12-16-2015, 09:05 AM
  5. Resizing a subform
    By tobydobo in forum Forms
    Replies: 3
    Last Post: 09-29-2011, 11:43 PM

Tags for this Thread

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