Hi,
I've got a 2 dimensional array containing a field (text box) name and it's initial value. When I come to update my database, I want to cycle through the array and check each value against the current value to check for changes (I'll then be sending changes to an audit table). How can I get the field name out of the aray and resolved as a text box name.
I was looking at something like
If oldValues(2, 1).Text <> oldValues(2, 2) Then ...
but it doesn't resolve the "oldValues(2, 1)" as an object name. [oldValues(2,1) is the name of the text box and oldValues(2,2) is the initial value]
How can I get Access to resolve this at runtime rather than compile time?
I've got a 2 dimensional array containing a field (text box) name and it's initial value. When I come to update my database, I want to cycle through the array and check each value against the current value to check for changes (I'll then be sending changes to an audit table). How can I get the field name out of the aray and resolved as a text box name.
I was looking at something like
If oldValues(2, 1).Text <> oldValues(2, 2) Then ...
but it doesn't resolve the "oldValues(2, 1)" as an object name. [oldValues(2,1) is the name of the text box and oldValues(2,2) is the initial value]
How can I get Access to resolve this at runtime rather than compile time?