The code I have is lengthy, so maybe we can solve this problem without?
In my code:
ALL variables are declared as double for use with the entire module.
ALL variables are initialized to zero before the math is being done.
I scroll thru a recordset, adding like records together.
At the end, I subtract two of the variables from each other.
BEFORE I do, I check the value of the variables.
In some (but not all) instances where the two values being subtracted are identical,
the answer is not zero. I get 9.09102349E-013 or something.
WHY?!?!?!?
In my code:
ALL variables are declared as double for use with the entire module.
ALL variables are initialized to zero before the math is being done.
I scroll thru a recordset, adding like records together.
At the end, I subtract two of the variables from each other.
BEFORE I do, I check the value of the variables.
In some (but not all) instances where the two values being subtracted are identical,
the answer is not zero. I get 9.09102349E-013 or something.
WHY?!?!?!?