Hello,
Im trying to work out a percentage within a query, but when I do the calculation I get the error "Division By Zero". Can anyone advise me on this? SQL below.
Thanks
Im trying to work out a percentage within a query, but when I do the calculation I get the error "Division By Zero". Can anyone advise me on this? SQL below.
Thanks
Code:
SELECT PMA_tblPMA_Export.RepMnth, PMA_tblPMA_Export.[UN Code], Sum([PMAOfSum]/[CUROfSum]) AS [Ratio (NET)], PMA_tblPMA_Export.PMAOfSum AS [PMA (NET)]
FROM PMA_tblPMA_Export
GROUP BY PMA_tblPMA_Export.RepMnth, PMA_tblPMA_Export.[UN Code], PMA_tblPMA_Export.PMAOfSum
HAVING (((PMA_tblPMA_Export.RepMnth)="200909"))
ORDER BY PMA_tblPMA_Export.RepMnth, PMA_tblPMA_Export.[UN Code];