Below is the SQL that I am using to come up with a pct of
safe/unsafe. If there are 0 entry's for Safe Totals-Unsafe
Totals and Total totals the pct show #Error. Is there
a way for that to show as 0.00%?
safe/unsafe. If there are 0 entry's for Safe Totals-Unsafe
Totals and Total totals the pct show #Error. Is there
a way for that to show as 0.00%?
Code:
SELECT SafePPEBody.Total, UnSafePPEBody.Total, TotalPPEBody.Total, [UnSafePPEBody].[Total]/[TotalPPEBody].[Total] AS [Pct Unsafe], [SafePPEBody].[Total]/[TotalPPEBody].[Total] AS [Pct Safe]
FROM TotalPPEBody, SafePPEBody, UnSafePPEBody;