• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 821
  • Last Modified:

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]
0
BSAS_ITGuy
Asked:
BSAS_ITGuy
  • 3
  • 2
2 Solutions
 
adraughnCommented:
=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
 
adraughnCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now