Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Expert > X03 > < X02 | X04 >
Back to Access Expert 3    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Form Totals
Sandra Truax 
         
3 years ago
I created a continous form for my checkbook database, and created a field in the form's footer to sum the deposits and Payments, and it works perfect.

If I use the form as a subform by dragging and adding it to the main form, it still works right.

HOWEVER, I want to use it so that the Subform named Register displays the form when a label is clicked by using the code Register.SourceObject = "TransactionsF", for some reason the totals in the footer always says #Error. Everything else is right.

I change the Register.SourceObject with three other forms, and they all work right, but then again, they don't have totals in the footer.

How can I fix this?
Sandra Truax OP  @Reply  
         
3 years ago
11 hours later, I finally fixed this myself. I deleted the =Sum(Payment) from the unbound box, and put this is the code in the forms On Current Event.  I'm sure this isn't the "right way", but it works.

    PaymentSum = DSum("Payment", "Transactionq", "AccountID=" & Forms!startupf!AccountCombo & " AND Month(TransactionDate)=""" & Forms!startupf!DateFilter & """")

    DepositSum = DSum("Deposit", "Transactionq", "AccountID=" & Forms!startupf!AccountCombo & " AND Month(TransactionDate)=""" & Forms!startupf!DateFilter & """")
Adam Schwanz  @Reply  
            
3 years ago
If it works, it works :P, looks fine to me.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Expert 3.
 

Next Unseen

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 12/10/2025 1:29:55 AM. PLT: 1s