Hi I have a simple query below to find the percentage difference between 2 long integer columns. However I find that if any of the 2 values in a row are both zero it causes an error in the result for this record and if I run it from a VBA module it causes an overflow error and stops the routine. How do i get around this?
Cheers
Code:
SELECT ((fieldA - fieldB [B])/[/B] fieldB) * 100 AS percentdiff
FROM mytable;
Cheers