i am also having problems getting division by zero. It might have something to do with null values in my table. How can I check to see if null in my table but when i check i need it to be in a query. Like some kind of Iff command in my SQL, if null set to 1 because i am dividing by the value return by the query to get the percentage
PTDRetailTissuePackPer: iff([qry_PTDRetailTisPackCon]![NumRetailTisPackCon]=0,1,(1-([qry_PTDRetailTisPackNonCon]![NumRetailTisPackNonCon]/[qry_PTDRetailTisPackCon]![NumRetailTisPackCon])))
if i try using that i get a different error:
undefined function iff in expression
PTDRetailTissuePackPer: iff([qry_PTDRetailTisPackCon]![NumRetailTisPackCon]=0,1,(1-([qry_PTDRetailTisPackNonCon]![NumRetailTisPackNonCon]/[qry_PTDRetailTisPackCon]![NumRetailTisPackCon])))
if i try using that i get a different error:
undefined function iff in expression