F fenhow Registered User. Local time Today, 04:14 Joined Jul 21, 2004 Messages 599 Feb 18, 2010 #1 Hi, I am using this to calculate a % in my query. Expr1: Format([SumOfNMA]/[Surface_Acres],"Percent") It works great execpt where there are zeros, it shows error. Is there a work around for this? Thanks. Fen How
Hi, I am using this to calculate a % in my query. Expr1: Format([SumOfNMA]/[Surface_Acres],"Percent") It works great execpt where there are zeros, it shows error. Is there a work around for this? Thanks. Fen How
pbaldy Wino Moderator Staff member Local time Today, 04:14 Joined Aug 30, 2003 Messages 36,157 Feb 18, 2010 #2 Untested, but try IIf([Surface_Acres] = 0, 0, Format([SumOfNMA]/[Surface_Acres],"Percent"))
F fenhow Registered User. Local time Today, 04:14 Joined Jul 21, 2004 Messages 599 Feb 18, 2010 #3 Paul, You always come through. Perfect! Thanks a million. Cheers, Fen
pbaldy Wino Moderator Staff member Local time Today, 04:14 Joined Aug 30, 2003 Messages 36,157 Feb 18, 2010 #4 No problem Fen.