vipersmind
it can't be!
- Local time
- Today, 21:55
- Joined
- Dec 26, 2002
- Messages
- 82
Hi
On my report I have the following fields:
[PEOri$Cap]
[PEDrill$Cap]
[PESurvey$Cap]
[PEStandBy$Cap]
The control source for the report is a qry.
[TotalPECap$] is the total for above fields.
control source for this one is:
=[PEOri$Cap]+[PEDrill$Cap]+[PESurvey$Cap]+[PEStandBy$Cap]
My problem is when the query returns no values at all I get blanks in the first 4 fields and #error in the [TotalPECap$]
Although I would like to see "-" in the 4 fields when nothing is returned from the controlling qry , I really want to show $0.00 when the total for these 4 fields is returning null.
So I tried the following in the control source of [TotalPECap$] to force it to show 0, but no, it won't play!
can you please help
On my report I have the following fields:
[PEOri$Cap]
[PEDrill$Cap]
[PESurvey$Cap]
[PEStandBy$Cap]
The control source for the report is a qry.
[TotalPECap$] is the total for above fields.
control source for this one is:
=[PEOri$Cap]+[PEDrill$Cap]+[PESurvey$Cap]+[PEStandBy$Cap]
My problem is when the query returns no values at all I get blanks in the first 4 fields and #error in the [TotalPECap$]
Although I would like to see "-" in the 4 fields when nothing is returned from the controlling qry , I really want to show $0.00 when the total for these 4 fields is returning null.
So I tried the following in the control source of [TotalPECap$] to force it to show 0, but no, it won't play!
Code:
=NZ([PEDrill$Cap],0)+NZ([PESurvey$Cap],0)+NZ([PEOri$Cap],0)+NZ([PEStandBy$Cap],0)
can you please help