Hi,
I have created a report in my Access db which has two columns - I'll call them Number1 and Number2. I have added a textbox to calculate a percentage from these two numbers
=([Number1]/[Number2]) with the format property set as percentage.
My problem. Sometimes the number in Number2 is a zero, which means the result of the expression is invalid and gives me "#Num!" - I understand why this is happening, but I wondered if there was a way around it.
What I would like to happen is that when it is trying to divide by zero, the #Num! is substituted for a blank space or a zero.
This is purely cosmetic as I would like my report to look neater.
Any help gratefully received.
Thanks,
Olly
I have created a report in my Access db which has two columns - I'll call them Number1 and Number2. I have added a textbox to calculate a percentage from these two numbers
=([Number1]/[Number2]) with the format property set as percentage.
My problem. Sometimes the number in Number2 is a zero, which means the result of the expression is invalid and gives me "#Num!" - I understand why this is happening, but I wondered if there was a way around it.
What I would like to happen is that when it is trying to divide by zero, the #Num! is substituted for a blank space or a zero.
This is purely cosmetic as I would like my report to look neater.
Any help gratefully received.
Thanks,
Olly
Comment