Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iif stmt and rounding

Status
Not open for further replies.

was1

Technical User
Aug 10, 2005
31
US
I created an iif stmt : iif([GrossAmt]=[NoteAmt]"Match","Research")

My problem is that there is some rounding going on that creates a "Research". What can I do to eliminate the rounding? The variance is so small that I want it to show a "Match".

Example:
Gross Amt: $100.00
Note Amt: $100.00
Var: -4.54747350886464E-13
 
Perhaps something like this ?
IIf(Abs([GrossAmt]-[NoteAmt])<0.01, "Match", "Research")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you! Thank you! Thank you! works perfect!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top