Computer Learning Zone CLZ Access Excel Word Windows

We are the local embodiment of a Cosmos grown to self-awareness. We have begun to contemplate our origins: starstuff pondering the stars.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Report Print View Issue
Malcolm P Galvin Jr 

3 years ago
MS Access 2019 desktop report Print View issue.

In Report View unbound text boxes display calculation correctly.   When switched to Print View the text boxes do not display the calculation correctly: e.g. #Size! or #Type!.  Do not understand why.  HELP!!

Design:
I have a report, Report_GeneralLedger. The reports source is:
SELECT Account.AcctID, Account.Account, Account.Fund FROM Account;
There is a text box for AcctID, Account and Fund.

There are also the following unbound text boxes:
Assessments  Control Source =[Child2].[Report]![AssessmentTotal]
InterestIncome =[Child4].[Report]![InterestIncomeTotal]
Adjustments  =[Child5].[Report]![GLAdjustmentTotal]
Disbursements  =-[Child6].[Report]![DisbursementTotal]
BALANCE  =Nz([Assessments])+Nz([InterestIncome])
+Nz([Adjustments])+Nz([Disbursements])

There are 4 subreports referred to in the control sources, above for the text boxes.



The form has only one Event associated with it and its controls:
Private Sub Report_Open(Cancel As Integer)
If CurrentProject.AllForms("Form_OpenAccount").IsLoaded = True Then
        DoCmd.Close acForm, "Form_OpenAccount"
    End If
End Sub

Report View:
The 5 text boxes listed above display the Total from their respective subreports.  If there is no activity, the text box displays a -0-.  The subreports are displayed even if there is no activity.

Print View:
When there is no activity the Child subreport without activity is not displayed and the related text box displays an error.  Is there a way to fix this?

Richard Rost  @Reply  
          
3 years ago
I wouldn't rely on getting values from a subreport like that. Calculate them on an open form or in memory. Perhaps use domain aggregate functions like Dsum.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/7/2026 3:56:32 AM. PLT: 1s