by Jonathan Halder | Sep 10, 2024 | Blogging, MS Access, MS Access VBA Coding
In Part 3 (Refactoring the function PS_GetFileHashes (Part 3) | Access JumpStart) we arrived at this code with helper functions and a helper class: Function PS_GetFileHashes(aFiles As Variant, sHashAlgorithm As String) As Scripting.Dictionary Dim retVal As New...
by Jonathan Halder | Sep 9, 2024 | Blogging, MS Access
Within about an hour this morning I had 6 customers communicating with me this morning via email right before an hour long customer meeting. I whipped off answers as needed, scheduled calls for later in the week, blended up some code fixes and researched buggy...
by Jonathan Halder | Sep 5, 2024 | Blogging, MS Access, MS Access Features, MS Access Queries, MS Access Tables, MS Access VBA Coding
So first things first. It is not recommended that you use spaces or special characters in your table names as it can cause problems referencing them or cases that are ambiguous and may cause unintended results in the code. But maybe you have used them in the...
by Jonathan Halder | Sep 4, 2024 | Blogging, MS Access, MS Access VBA Coding
I’ll continue refactoring today, here’s where I ended up in yesterday’s message. It’s the main function that’s been split up into 1 helper function to test the Hash and make sure it’s available, otherwise display a message box. And...
by Jonathan Halder | Sep 3, 2024 | Blogging, MS Access, MS Access VBA Coding
Here’s our big hairy function I’m working on to refactor and get it a little more compact. So far the following contains a new instance of the class PS_FileHashesCommand which removed some constants to their own class with two needed little methods. Those...
by Jonathan Halder | Sep 2, 2024 | Blogging, MS Access, MS Access VBA Coding
In a recent message I referenced some changes I made to this function and included a copy of it. I mentioned that I wanted to refactor it after getting the behavior I wanted because it’s rather unreadable. So let’s see how I would refactor this: Function...