Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 6th, 2004, 08:42 AM
ktrails ktrails is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 5 ktrails User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Does CanShrink not work for a subreport having a bound record?

Hi,

I have a subreport that contains several subreports. I don't want the overall subreport to display unless one or more of the contained subreports has data. The contained subreports are each based on their own queries, and the top level subreport is just used to show the headers and the totals.

What I did was base the top level subreport on a query that would *always* have data, and then implement the OnFormat event such that it calls 'SELECT COUNT(*)' queries to determine if any of the contained subreports have data. If one or more of them do, the top level subreport is set Visible=True, otherwise it is set Visible=False.

The problem I am seeing is that even though the top level subreport is hidden (Visible = False), there is still whitespace left in the main report for that subreport. I have checked *every single* place where CanShrink should be set TRUE, and that all checks out okay.

So, does CanShrink *not* work for a bound subreport when
that subreport has data?

TIA,

-jeff

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Does CanShrink not work for a subreport having a bound record?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway