G
Guest
I have a table with fields A,B,C,,, and IndexZ which is calculated by an
algorithm e.g. if A>10 and B<5 then set IndexZ=A. There are approximatley 800
records in the table. At data entry time the Form_AfterUpdate event calls a
function passing a record number and after a .FindFirst to the record number
the calculation of IndexZ is done and .Update saves the record. Now, I also
want to be able to call the function to read thru all 800 records
recalulating IndexZ, but I only want to have the algorithm defined ONCE in my
application as it's long and complex. This is also good practise.
Thoughts? Thanks.
algorithm e.g. if A>10 and B<5 then set IndexZ=A. There are approximatley 800
records in the table. At data entry time the Form_AfterUpdate event calls a
function passing a record number and after a .FindFirst to the record number
the calculation of IndexZ is done and .Update saves the record. Now, I also
want to be able to call the function to read thru all 800 records
recalulating IndexZ, but I only want to have the algorithm defined ONCE in my
application as it's long and complex. This is also good practise.
Thoughts? Thanks.