C
clk
I am trying to make a summary query to show the percent of change in
test scores. I have it working except when a zero is entered.
In my query I have the following two fields:
PercentMoney: IIf([LegalCorrect]=0,0,[LegalCorrect]/[Legal])
PctGain: IIf(IsNull([PrevDate]) Or NZ([PercentMoney]=0),0,
(([PercentMoney]/
NZ(DLookUp("PercentMoney","qryDanielMemorialScoresLegalSummary","DMDate=
#" & [PrevDate] & "#"),0)))-1)*100
I thought I was handling the division by zero errors but it is still
throwing that error message.
Any help would be greatly appreciated.
Thank you.
test scores. I have it working except when a zero is entered.
In my query I have the following two fields:
PercentMoney: IIf([LegalCorrect]=0,0,[LegalCorrect]/[Legal])
PctGain: IIf(IsNull([PrevDate]) Or NZ([PercentMoney]=0),0,
(([PercentMoney]/
NZ(DLookUp("PercentMoney","qryDanielMemorialScoresLegalSummary","DMDate=
#" & [PrevDate] & "#"),0)))-1)*100
I thought I was handling the division by zero errors but it is still
throwing that error message.
Any help would be greatly appreciated.
Thank you.