Computer Learning Zone CLZ Access Excel Word Windows

Primitive life is very common and intelligent life is fairly rare. Some would say it has yet to occur on Earth.

-Stephen Hawking
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Captain's Log    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Way Too Late Last Night
Richard Rost 
          
29 days ago
So yesterday I decided to make what I thought would be a quick, harmless, "ten-minute improvement" to my main database. You know the kind. The little tweaks you do just to smooth things out. Streamline a process. Make it cleaner. More efficient. Cross all the i's and dot all the t's. Yes, I know that's backwards. I say it that way on purpose. It's tradition at this point.

Anyway, this particular process dates back to Ancient Richard Times. We're talking decades ago, before I knew any better. It runs a loop and, as part of that loop, it actually opens up the customer form to do some work. Horrible practice by today's standards, but it's been surprisingly bulletproof. Maybe once a month it locks up, and my Watchdog utility steps in, restarts Access, and life goes on.

But yesterday I watched it happen and thought, "Well that's silly. I can fix that." No need to open a form. Just handle everything in the background with a proper recordset. Cleaner. Faster. More elegant.

Famous last words.

I rewrote it. Beautifully, I might add. I could write those in my sleep now. Proper error handling. Nice clean logic. The kind of code you sit back and admire for a second before moving on. What I did not realize, however, was that other parts of the system were quietly depending on that form being open. Not for the main task, but for things that happened afterward.

So now this function broke that function, which broke another procedure, which triggered a cascade failure worthy of a warp core breach. At one point I seriously considered restoring from the pre-change backup and calling it a night. Crawl into bed. Pretend none of this ever happened.

But no. The perfectionist in me took the conn. So down the rabbit hole I went. Fix this dependency. Rewrite that routine. Adjust the follow-up process. Then I discovered the user upload procedure, the one that pushes data from my local Access database to the web server, also relied on the old behavior. That fix broke credit card processing. Because of course it did.

Next thing I know it's 4:00 in the morning. I'm squinting at the screen with my one good eye, testing transactions, running uploads, watching logs scroll by. I even had to switch the VBA editor into dark mode because the white background was burning a hole straight through my functioning retina. So if you notice future videos looking a little more "night shift friendly," that's why.

The good news is by Monday morning everything was stable again. Systems operational. Engines back online. But there were a couple of solid takeaways from the adventure...

First, backups are life. I had multiple. I made another one right before starting the "ten-minute fix." At any point I could have rolled back instantly. That safety net makes deep surgery possible.

Second, it's always the ten-minute changes. Every time you think, "I'll knock this out before dinner," you are lying to yourself. That is never a ten-minute change. That is a six-hour marathon wearing a fake mustache.

And the final lesson, especially for anyone doing client work, is about estimates. Never give the optimistic number. Never tell the captain it'll take two days. You tell him two weeks. Because when you pull it off in five days, you look like a miracle worker. Scotty understood this. Reputation management through strategic pessimism. Don't be like Geordie giving accurate engineering timelines.

Be like Scotty.

LLAP
RR
Richard Rost OP  @Reply  
          
29 days ago

Sam Domino  @Reply  
      
29 days ago
Richard I understand completely.  Many the time, I've made a "tiny" change to my code; only to have it blow up in my face.  This is why I rarely delete code; I just comment it out.  LOL!!!
Richard Rost OP  @Reply  
          
29 days ago
Yeah, the problem with commenting stuff out is that if you're searching for something, then it shows up in all that commented code. I've got dozens of forms that I no longer use, but they have code in them that references the same function. If I want to try to find something everywhere that this one particular function is, then it now searches all that code too, and it's just a pain, so I just back up the whole database and delete what I don't need. If I realize later I need it, I go hunting and fishing.
Alex Hedley  @Reply  
           
28 days ago
Sam you can always use VCS / GitHub and keep a proper history
Richard Rost OP  @Reply  
          
28 days ago
Alex does love GitHub.
Alex Hedley  @Reply  
           
28 days ago
You're welcome to use any others like https://about.gitlab.com/ :p
Add a Reply Upload an Image
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: 3/17/2026 11:10:08 AM. PLT: 1s