Solved

Subreport won't shrink

Posted on 2013-11-21
7
577 Views
Last Modified: 2013-11-22
Dear experts -
This is driving me crazy!
I have a report and a subreport.
I set the source of the subreport in the open event - that works just fine.
The problem is the subreport will not shrink when there are no records!
The section detail is set to 'can shrink'.
I have even gone into the subreport and removed ALL fields - leaving a 1/4 inch detail height but also setting detail to "can shrink" in the subreport. The recordsource of the subreport is set to return no values (just so there is not some hidden value popping up - for testing purposes).
Finally, there are NO overlapping fields in the detail section.
Any ideas?
Thanks -
0
Comment
Question by:terpsichore
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 30

Expert Comment

by:hnasr
ID: 39665257
Upload a sample database, with just the reports and their record sources, showing the issue.
0
 

Author Comment

by:terpsichore
ID: 39665274
it is rather complex - i was hoping to get a few ideas to try first...
0
 

Author Comment

by:terpsichore
ID: 39665297
I SEE THE PROBLEM - it shrinks in Print Preview but not in Report View - is there a way around this?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:hnasr
ID: 39665663
"it is rather complex -"
Why complicate it?
Reproduce the problem. This means a simple report with 2 tables, 3 or 4 fields each.
Then explain what to do to see the issue.
0
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39669700
I don't think there is a way around it.  Report view doesn't run your event code and you would need to use event code to "hide" the subreport.

Do you have to use ReportView?
0
 

Author Closing Comment

by:terpsichore
ID: 39669852
I guess not - we like to have the luxury of having users click on report elements and calling up other forms, etc. But I guess there is no solution to this issue. Thank you.
0
 
LVL 36

Expert Comment

by:PatHartman
ID: 39670134
I too like the ability to use report events to drill down but there are quirks with the "feature" so I only use it in limited cases.  

Send a complaint to MS.  They tell me they listen and in this case, the ReportView should work the same way as the PrintPreview and not show empty subreports.  If people don't formally complain, the Access team has no way of knowing what causes us problems.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question