I have the following code in a form:
ElseIf (([A21] <> ([E38] + [E58]))) Then
A21.Visible = True
E38.Visible = True
E58.Visible = True
CumNetPL.Visible = True
Line221.Visible = True
BoxA21E38E58.Visible = True
Obviously this is not all the code, just the relavent ones. If the formula above is not true A21 does not equal (E38+E58) all these fields become visible so the person knows there is an error. If they do equal, the formula goes on to the next ElseIf.
The problem:
A21=(1,455,426.61)
E38=1,000,000.00
E58=(2,455,426.61)
OR
A21=(1,455,426.61)
E38=(1,000,000.00)
E58=(455,426.61)
I have tried both ways and each time, the boxes become visible. I put the exact same formula in an excel spreadsheet and it said they were equal. How come Access does not think these numbers are equal? Any ideas?
Appreciate any help. Janet Lyn
ElseIf (([A21] <> ([E38] + [E58]))) Then
A21.Visible = True
E38.Visible = True
E58.Visible = True
CumNetPL.Visible = True
Line221.Visible = True
BoxA21E38E58.Visible = True
Obviously this is not all the code, just the relavent ones. If the formula above is not true A21 does not equal (E38+E58) all these fields become visible so the person knows there is an error. If they do equal, the formula goes on to the next ElseIf.
The problem:
A21=(1,455,426.61)
E38=1,000,000.00
E58=(2,455,426.61)
OR
A21=(1,455,426.61)
E38=(1,000,000.00)
E58=(455,426.61)
I have tried both ways and each time, the boxes become visible. I put the exact same formula in an excel spreadsheet and it said they were equal. How come Access does not think these numbers are equal? Any ideas?
Appreciate any help. Janet Lyn