Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Me Undo by Jeffery Adams
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Me Undo
Jeffery Adams 
     
4 years ago
Richard,
First Just want to say hello and that I also live here in Fort Myers.  Here is my question
So I am a huge believer in if a code is duplicated to create a Func or Global Sub then call that Func or Sub, I have a lot of forms and I have 3 of the same buttons on all "Add", "Save" and "Cancel".  I have created Global subroutines so that I just have to call them and pass the formName to them.  I got the "Add" and "Save" to work but for the "Cancel" I don't know how to pass the UNDO to the form.  Is there a way to use the UNDO from a Global Sub or am I barking up the wrong tree?
Jeffery Adams OP  @Reply  
     
4 years ago
Ok I have figured it out and tested and t works the Variable is "formName" and the undo code to use with that variable from a Global Sub is Forms(formName).Undo thanks
Richard Rost  @Reply  
          
4 years ago
Glad to be of service. LOL. Nice to meet you, neighbor. I won't be in Fort Myers too much longer. We'll be moving over the river to Cape Coral in a few months.
Kevin Yip  @Reply  
     
4 years ago
Put the Add, Save, and Cancel buttons on a separate tiny form (with all the necessary code), and place it as a subform on all other forms.  That way, you have truly recyclable code and controls.

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

Next Unseen

 
 
What's This?

 

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: 10/20/2026 1:14:33 AM. PLT: 1s