Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Developers
Back to Access Developer Forum    Comments List
Upload Images   Link   Email  
Subform is losing its values
Gary Becker 
     
21 days ago
I have a main form for Employees and a subform for vacation details. On the main form I have an unbound date field. When I open up the form & subform, the employee's accrued vacation hours are summed at the bottom of the subform. When I change the date field, the records stay in the subform, but the text box with the total hours goes blank. I've tried to requery and refresh and can't get either of those to bring back the calculation in the subform. But if I click on the form or on the subform, the textbox immediately fills. I'm using the date picker to change the date and running code on the OnChange event to set the focus back to the correct place on the main form.
Gary Becker OP 
     
21 days ago

John Davy 
         
21 days ago
Hi Gary, Can you show us the code you use to sum the accrued time and also from where are you calling this code

John
Gary Becker OP 
     
20 days ago

Gary Becker OP 
     
20 days ago

Gary Becker OP 
     
20 days ago
The subform is getting its data from a query filtered by the employee number from the combo box. And then value of the text box "txtSumofHours" is just a simple sum adding up the values in the detail of the subform. Is this clear?
Add a Reply Upload an Image

 
 
 

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: 2/13/2025 2:24:59 AM. PLT: 2s