Show $0.00 for blank Controlsource Field from Subreport

I have an access form that is pulling a sum from the subreport. I want to show $0.00 for any time the controlsource is null or blank from the subreport. Right now it returns #error whenever ther is no data. I would like to show $0.00 in that case.

 I currently have this as the controlsource:  =Details.Form![price total]
LVL 1
BSAS_ITGuyAsked:
Who is Participating?
 
adraughnConnect With a Mentor Commented:
=IIF(isnull([price total]),"$0.00")

or

=NZ([price total],"$0.00")
0
 
BSAS_ITGuyAuthor Commented:
For some strange reason whenever I put that expression it kicks me out os Access, blinks and then sends me back in with the old formula still there.
0
 
adraughnConnect With a Mentor Commented:
you could change the price that you are totaling to:

=NZ([price],0)

then there would never be nulls to total, only zeros.
0
 
BSAS_ITGuyAuthor Commented:
Thanks
0
 
BSAS_ITGuyAuthor Commented:
Quick responses.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.