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 > Courses > Access > Developer > D46 > < D45 | D47 >
Access Developer 46

Building a Microsoft Access Undo System for Orders


 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Buy Now

          Only $55.99
          Members pay as low as $28

Welcome

Welcome to Microsoft Access Developer Level 46, brought to you by Access Learning Zone. I'm your instructor Richard Rost. 

Today's lessons are going to cover building an undo system for your Microsoft Access database. Access allows you one undo, but what if you're working on an order and you want to undo the last three or four things that you did? An edit, a delete? That's what we're going to cover in today's class.

This is going to involve building a change log so we can track exactly what changes are made to the order, then an undo button. We'll have to do three separate cases: undoing edits, additions, and deletions. They're all separate. We'll make a custom delete button. We've done that before, but there are some subtleties with this one.

Then we will talk about two significant problems that come up. One, when you delete a record from a table and then restore it with its Autonumber, a problem comes up, and we'll talk about how to fix that. We'll also see how CurrentDB.Execute doesn't ever really give you error messages, and we'll deal with that problem too.

Resources

Topics Covered

In Lesson 1, we are beginning our undo system. We are going to build a change log table so we can track the undos and the edits in the table. We will write the code to save those changes into the log table. We will build our undo button and begin writing the code to restore the edited record when the user clicks undo.

In Lesson 2, we will continue with the undo system. We will finish undoing an edited record, and once the change is made, we will move the focus to that record so the user can see that it was the last one modified and what was undone.

In Lesson 3, we will track what type of change was made, whether it was an edit, an addition, or a deletion. We will build a custom delete button to handle deletions instead of relying on the built-in events for delete. Then we will handle undoing a record deletion by adding it back to the order.

In Lesson 4, we will address two problems. One is the issue that occurs with auto numbers when you insert an Autonumber back into the table. We will discuss how that is fixed. The second issue involves CurrentDB.Execute and how it does not provide error messages. We will explore how to deal with that problem.

In Lesson 5, we will refine the undo system by showing or hiding the undo button based on whether there is anything to undo. For example, if you open a new record, you do not want to see an undo button when there is nothing to undo. We will also make the undo button show the last action item, such as whether it was an edit, an addition, or a deletion.

Enroll Today

Enroll now so that you watch these lessons, learn with us, post questions, and more!

Questions?

Please feel free to post your questions or comments below. If you are not sure as to whether or not this product will meet your needs, I'd rather help you before you buy it. Remember, all sales are final. Thank you.

KeywordsMicrosoft Access Developer 46

microsoft access, access 2016, access 2019, access 2021, access 365, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, undo system, change log table, save changes code, undo button, restore edited records, undo additions, undo deletions, restore deleted records, auto number issues, custom delete button, CurrentDB.Execute errors, error handling in VBA, Access record recovery, Access transaction log, VBA undo functionality

 

 

 

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Access Developer 46
Get notifications when this page is updated
 
 
 
 

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: 1/24/2025 3:54:33 AM. PLT: 1s
Keywords: access developer 46 undo system, change log table, save changes code, undo button, restore edited records, undo additions, undo deletions, restore deleted records, auto number issues, custom delete button, CurrentDB.Execute errors, error handling in VBA,   Page Tag: whatsnew  PermaLink  Microsoft Access Developer 46