I'm trying to capture the DCount of four different queries before a form can update them in VBA in Access 2002.
The hope is to compare the old record count for each query with a current record count after the Save button has been clicked to see if the query record count has increased since last entry. If any of the queries have gained an additional record, a message box would then appear and notify the user.
I have four different private functions created that capture these values from outside of the subroutine. I'm able to set four variables to the value of each of these functions as they return integers.
When called they automatically update to the current record count and the pop up warning of the record increase in any (or all) of these queries never happens.
How do I capture (and keep) the previous state of these queries while being able to compare it to the current state to see if there's a change?