by Jonathan Halder | Mar 22, 2024 | MS Access, MS Access VBA Coding, TDD
I’m making a new test. So far I’ve just copied an old test and here it is so far: ‘@TestMethod(“Verify Changes”) Private Sub WhenControlTypesAcceptedListChanges_ThenControlTypesInListChecked() Dim dctInputs As New Scripting.Dictionary,...
by Jonathan Halder | Mar 21, 2024 | MS Access, MS Access VBA Coding, TDD
I’ve decided to use an array instead of a collection. I have to loop over either to search for the element, the array will be small, and it is native to the VBA language and I don’t have to create a new object. Also, I am just planning on using the array...
by Jonathan Halder | Mar 20, 2024 | MS Access, MS Access VBA Coding, TDD
Per the last writing, I wanted to refactor the BeforeUpdate routine Select Case statement. Here is the code in question: Private Sub FormToAudit_BeforeUpdate(Cancel As Integer) Dim Fld As Variant, ChangeDictionary As New Scripting.Dictionary, Ctl As Access.Control For...
by Jonathan Halder | Mar 19, 2024 | MS Access, MS Access VBA Coding, TDD
First I need to review a test that is failing: That test was not the last test I wrote which was the Verify Info Fields category test to return the new ControlSource property I added. The failing test was actually another test I wrote to see if two fields bound to the...
by Jonathan Halder | Mar 15, 2024 | MS Access, MS Access Features, MS Access VBA Coding, TDD
I first have to let you know that I am NOT actually doing Test Driven development on live projects consistently. I have created some tests for client work in the past before coding, but it has been quite rare. I like the idea of Test Driven Development and would like...
by Jonathan Halder | Mar 14, 2024 | MS Access, MS Access VBA Coding, TDD
I’m going to add a data element to our collection so that the user of our Form Auditor class will have the bound field name from the ControlSource property. First I will add a new test to check for this additional field in order to have a failing test, then I...