M
MC
Hello,
I'm a first time user of this forum and most of my Access 2003 knowledge
comes from trial and error, so please be patient
Here's my problem. I'm trying to create a "Percent Change" field based on
the fields "Current Quarter Usage to date" and "Previous quarter usage". This
is the formula I have now:
Percent Change: (nz([Current Quarter Usage to date],0)-nz([Previous Quarter
Usage],0))/nz([Previous Quarter Usage],0)
This is working wherever there is a non-zero value in the "Previous Quarter
Usage" field. However, naturally wherever there is a null or zero in the
"Previous Quarter Usage" field, the "Percent Change" field returns "#Error".
What I want it to do is return 0% if there are zeros in BOTH the "Previous
Quarter Usage" and "Current Quarter Usage to date" fields, but return "N/A"
if the "Previous Quarter Usage" field is zero and the "Current Quarter Usage
to date" field is greater than zero.
Can anyone suggest a solution?
Thanks!
~MC
I'm a first time user of this forum and most of my Access 2003 knowledge
comes from trial and error, so please be patient
Here's my problem. I'm trying to create a "Percent Change" field based on
the fields "Current Quarter Usage to date" and "Previous quarter usage". This
is the formula I have now:
Percent Change: (nz([Current Quarter Usage to date],0)-nz([Previous Quarter
Usage],0))/nz([Previous Quarter Usage],0)
This is working wherever there is a non-zero value in the "Previous Quarter
Usage" field. However, naturally wherever there is a null or zero in the
"Previous Quarter Usage" field, the "Percent Change" field returns "#Error".
What I want it to do is return 0% if there are zeros in BOTH the "Previous
Quarter Usage" and "Current Quarter Usage to date" fields, but return "N/A"
if the "Previous Quarter Usage" field is zero and the "Current Quarter Usage
to date" field is greater than zero.
Can anyone suggest a solution?
Thanks!
~MC