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 > TechHelp > Directory > Access > Immediate Refresh < Export to Word 2 | Extract OLE Image >
Back to Immediate Refresh    Comments List
Upload Images   Link   Email  
Custom Event Class Object
Gary James 
     
10 months ago
Rich, this lesson is along the lines of what my Custom Event Class Object does to other open forms.   This is what I mentioned last summer when you were suffering from a bad tooth.

If you have a form that opens other forms, and the form changes data that's shared in the other forms, the parent form would normally have to talk to to any and all other forms that use the parent's data.   This places the burden on the parent form to know which other forms might share the data that was modified, and where to make changes to update the data displays.    A better and more elegant design uses windows messaging so that the parent form can simply send a message stating that field "Y" from table "X" was modified, and all other open forms receive and process that message and make their own decision on whether or not they'll do anything at all.  

To implement this I modified your Invoicing project to add the Custom Event Class, and the code that forms use to hook into the messaging chain when they open, and unhook themselves when they close.   I also added message processing code to modify form displays with either a Refresh or full Reload action.

I also added a test project that is a simple bare bones example of using custom events to let forms talk to each other.

The two projects are stored on Github at "https://github.com/NfaToys/Global-Messaging-Events-Class"

Gary James
Richard Rost 
          
10 months ago
Very cool. Thanks for sharing.

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

 
 
 

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/12/2025 6:15:24 AM. PLT: 2s