by Jonathan Halder | Sep 26, 2024 | Blogging, MS Access, MS Access VBA Coding
Just a quick note today. I wanted to add the call stack to my error log messages for my client app. That way I could see the full set of calls that was causing the error and it would help me debug better. For example, if I pass bad SQL to my SQL Executing function, I...
by Jonathan Halder | Sep 25, 2024 | Blogging, MS Access, MS Access Tables, MS Access VBA Coding
I have finished coding the solution. I ended up using DAO after all. The solution grabs a collection containing info about the source and target database paths and table names. Then it loops through the collection, opens the target database, deletes the table if it...
by Jonathan Halder | Sep 20, 2024 | Blogging, MS Access, MS Access VBA Coding
So, I was having an email conversation with a regular reader of my Access Adventure and he was discussing the sad lack of documentation for VBA’s internals. The engine that runs it and it’s various components. Although I have a cursory knowledge of VBA, I...
by Jonathan Halder | Sep 19, 2024 | Blogging, MS Access, MS Access VBA Coding
There are a number of looping structures in VBA. Here is a quick cheat sheet: Loop Types:For <var> = <start> To <end> (Step <amount to add>) / Next <var> For Each <itm> In <array / collection> / Next <itm> Do While...
by Jonathan Halder | Sep 17, 2024 | Blogging, MS Access
I’m struggling through some client work right now and finding that I have found at least 3 ways of how not to get the results I’m trying to achieve. In this case it has to do with reporting to the user everything that has changed from the beginning of...
by Jonathan Halder | Sep 16, 2024 | Blogging, MS Access, MS Access Features, MS Access Forms, MS Access Reports, MS Access VBA Coding
They sound the same, don’t they? But they aren’t!!! Often you want to control elements visibility on forms. For example, you might want to hide certain fields or buttons from view when you are adding a record instead of editing it. In a recent case for my...