Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Form with Sub form report
Alan Higgins 
      
3 years ago
I am finding i cannot create a report from a Form with a sub form plus Mulitiple total text boxes. If i copy the text boxes to the from the i get errors on all text boxes on the report. I have gone through several previous course work looking for a possible solution. Any suggestions would be appreciated.
Kevin Robertson  @Reply  
          
3 years ago
Sounds like you have pasted the totals in to the Page Footer. Move them to the Report Footer and they should work.
Alan Higgins OP  @Reply  
      
3 years ago
That is a good thought but that is where i have them. I moved them to the Form header as well still same result. If i hard code the date in the query it works fine. It seems as if the text box calculations are starting before the form can result the query data if that makes sense.
Alan Higgins OP  @Reply  
      
3 years ago

Kevin Robertson  @Reply  
          
3 years ago
For your Subtotals total try:
=Sum([Credit])+Sum([Debit]*-1)

Is this what you were looking for?
Alan Higgins OP  @Reply  
      
3 years ago
Thanks Kevin that formula doesn't work for me as i am getting my values from a running Balanace calculation.
The formulas i have work and give me the correct values except, i can't use the year prompt when i open the form, it fails.  
See attachments
Alan Higgins OP  @Reply  
      
3 years ago

Alan Higgins OP  @Reply  
      
3 years ago

Alan Higgins OP  @Reply  
      
3 years ago
=DMax("RunningBalance","ChkDescriptionTotalsQ")
Alan Higgins OP  @Reply  
      
3 years ago
I believe using the date somehow delays or stops the DMax functions in the text box from resulting. Like i said if i hard code the year in the query, the form results work perfectly
Alan Higgins OP  @Reply  
      
3 years ago

Alan Higgins OP  @Reply  
      
3 years ago

Kevin Yip  @Reply  
     
3 years ago
Hi Alan, you cannot use a parameter query in DMax().  The function below returns an error if ChkDescriptionTotalsQ requires a parameter:

     =DMax("RunningBalance","ChkDescriptionTotalsQ")

For domain aggregate functions (DCount, DLookup, DMax, etc.) to work, the domain must be a set of records already available for processing.  A parameter query does not have any records available unless and until the user enters the parameter.

You may think that DMax() should wait for the user entry like a parameter query does, but sadly it doesn't.
Alan Higgins OP  @Reply  
      
3 years ago
Ok that make sense, thank you for clarifying. I need to reevaluate my DB strategy.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 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: 4/30/2026 11:58:39 AM. PLT: 1s