Results 1 to 3 of 3
  1. #1
    bonnerm is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    7

    Can't control subreport spacing


    Hi all,

    I have a main report with about 8 subreports in the detail section. Some subreports are invalid depending on ProductType (the grouping level above). I have code in the On Format event for the detail section of the main report to mark certain subreports not visible. So for example, for a particular ProductType only the 4th subreport down might display (if you visualize the subreports stacked in a neat pile one after another). I've set "can shrink" just about everywhere with no success and I'm beginning to wonder if Access is able to reclaim space not needed by an invisible sub report?

    Thanks in advance .. Mark

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,631
    Encountered this topic before and as far as I know, the subreport will still occupy space.

    Might be able to programmatically set the Visibility and Top properties of the subreports. So, if no data, cause the following subreports to 'move' up. Wild speculation here, never attempted.
    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
    bonnerm is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    7
    Thanks - your wild speculation wasn't so wild as you thought - seems to work. I have to put a lot of code in to calculate the position for the top of the next sub report (depending on what has been print previewed earlier) but it has the required effect. Thanks again .. Mark

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

Similar Threads

  1. line spacing in access 2010
    By Alexander Pooh in forum Access
    Replies: 5
    Last Post: 08-15-2012, 08:13 AM
  2. Replies: 13
    Last Post: 05-14-2012, 03:41 AM
  3. Convert RTF spacing issue
    By allstar45 in forum Reports
    Replies: 1
    Last Post: 02-28-2012, 07:44 PM
  4. Replies: 1
    Last Post: 01-12-2012, 02:54 AM
  5. Replies: 1
    Last Post: 10-09-2011, 05:50 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