Replacing #Error with zero (0) in a calculated field

cakoli

New member
Local time
Today, 19:51
Joined
Jan 12, 2002
Messages
4
I am trying to use values from a calculated field of a subreport in another calculated field of a report, containing that subreport. The problem is that for records in the report, which do not have any value in the subreport, I get #Error in my calculated field. I am trying to replace that #Error with 0. How can I do that? I want to show on my report only numeric values.
 
use the nZ() function. There is a pretty good example on the Help in Access.
 
ThankYou for the suggestion, but I caouldn't make it work for me. I found anouther solution using the IsNull() and some tricks. It was like moving your right hand round the neck to catch your left ear, but it works for me. If anybody has any better solution it will be helpfull.
 

Users who are viewing this thread

Back
Top Bottom