May 9, 2005 #1 samotek Technical User May 9, 2005 197 BG How to avoid the error in a query when one of the 2 fields has a 0 value? My expression is field1*field2/field1 However when the value of the field1 is say 0, i want to divide field2/field1,that is to say to avoid the multiplication by 0, which gives 0
How to avoid the error in a query when one of the 2 fields has a 0 value? My expression is field1*field2/field1 However when the value of the field1 is say 0, i want to divide field2/field1,that is to say to avoid the multiplication by 0, which gives 0
May 10, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR Take a look at the IIf function. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Take a look at the IIf function. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244