Access JumpStart
  • Homepage
  • Blog
Select Page
  • Homepage
  • Blog

TDD – 050 – Function refactor successful

by Jonathan Halder | Feb 12, 2024 | MS Access, MS Access VBA Coding, TDD

Here we are, refactoring this function: Private Function SetFields_ChangeThem_ReturnDictionary(dctFieldName_arrStartAndEndVals As Dictionary) As Dictionary Dim testFormAuditor As FormAuditor Dim itm As Variant For Each itm In dctFieldName_arrStartAndEndVals...

TDD – 049 – Still refactoring the big change I wanted

by Jonathan Halder | Feb 9, 2024 | MS Access, MS Access VBA Coding, TDD

As I continue to refactor the test, this time I am going to try to create the dictionary object I think I want to get back and pass that to a helper function which will change the fields to the before state, instantiate the FormAuditor class, run a single BeforeUpdate...

TDD – 048 – Refactoring too much (Don’t try this at home)

by Jonathan Halder | Feb 8, 2024 | MS Access, MS Access VBA Coding, TDD

TDD is all about small changes and then testing and making sure things continue to run. I made the mistake yesterday of trying to refactor too much at once and I ended up leaving my system in an unrunnable state. Ideally, as you are developing, each change you make is...

TDD – 047 – Refactoring to make field changes simpler

by Jonathan Halder | Feb 7, 2024 | MS Access, MS Access VBA Coding, TDD

Ok, so now why am I creating all these objects in my test? How about creating the objects I want to see returned and use those to run the test on the form and then see if it’s the same objects I get back? I kinda feel like that is making the tests brittle...

TDD – 046 – Using ParamArray in VBA subs

by Jonathan Halder | Feb 6, 2024 | MS Access, MS Access Features, MS Access VBA Coding, TDD

We are in a refactor cycle, so it’s time to look at my mess and see what I can do to clean it up a bit. I had to make a number of changes to the test in order to test multiple fields at once. It didn’t work with my existing function which changed a single...
« Older Entries
Next Entries »

Get a Daily Email

An email loaded with my tips and musings.

    We won't send you spam. Unsubscribe at any time.

    Recent Posts

    • SDOpenAI Access Add In – controlling context through selecting text.
    • What are the options for OpenAI access? (as of May 2025)
    • Access VBA AI experiments – Full version of SDOpenAI Access Plugin installed
    • Preparing to use AI for programming
    • Microsoft Access customer form logging strategy

    Recent Comments

    1. RichardRost on Why I think hourly billing is nuts
    2. Using combo boxes to select an entry and update form fields | Access JumpStart on Hiding duplicate records using running totals over a group
    3. | Access JumpStart on Super Simple Code Kata
    4. Mike Wolfe on Running parallel SQL server databases for testing
    5. Custom Tags For Custom tags for form controls – reimagined code | Access JumpStart on Custom tags for form controls – the case to use them for

    Archives

    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    • October 2024
    • September 2024
    • August 2024
    • July 2024
    • June 2024
    • May 2024
    • April 2024
    • March 2024
    • February 2024
    • January 2024
    • December 2023
    • November 2023
    • December 2022
    • March 2022
    • January 2022
    • June 2021
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020

    Categories

    • Blogging
    • MS Access
    • MS Access Features
    • MS Access Forms
    • MS Access Queries
    • MS Access Reports
    • MS Access Tables
    • MS Access VBA Coding
    • TDD
    • Uncategorized
    • Versioning
    Copyright © Halder Consulting Inc.