Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Access 306    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Microsoft Access 306
David 
    
15 years ago
me.requery and me.refresh
What is the difference and when do I use each?
I have a main form based on a query amalgamating three tables with the main form having the autonumber ID and the two minor tables have a numberID equal to the mainform's autonumber.
I click on a button on the main form to open one or other of the minor forms at its related record (IDs related) to enter occasional details in the minor form (which is why it is a minor form and the fields are not part of the main form).
I want to update the totals on my main form following such entries and the fields in the underlying query to recalculate.  at present I use the following expression on the "after update" event
    Me.Requery
    Forms!frmBookAppointment.Refresh
[frmBookAppointment] being the main Form.
It does not seem to work until I close and re-open the main form - should I use recalculate instead of refresh on the main form?
Some of the entries on the minor form affect the calculations on the main form.
Where am I going wrong?
Many thanks
David

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

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/8/2026 12:21:47 AM. PLT: 0s