Hi
I am tryin to solve the same problem with a SUM statement I have.....
=Sum(Abs([RAG Status]="Amber"))
is the data source for a field in an Issues Report. However if the Report
contains no issues, there obviously won't be any Amber Issues and #Error is
displayed. I would rather "0" is displayed. I have tried conditional
formatting to turn "#Error" white if field is <1 and and the below statement
as the DataSource but I still get "#error". Cna you help out please?
=IIf(IsNull([RAG Status]),"0",Sum(Abs([RAG Status]="Amber")))
Douglas J. Steele said:
Ted missed a parenthesis:
HmPhNumPaste: iif(IsNull([H-PHONE]),"NP",Mid$([H-PHONE],1,3) &
Mid$([H-PHONE],4,3) & Right$([H-PHONE],4))
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
zyzzyva57 said:
Mr. Allen:
I get an error message there are NOT enough arguments
:
I use A2K
========
The following function works fine:
HmPhNumPaste: Mid$([H-PHONE],1,3) & Mid$([H-PHONE],4,3) &
Right$([H-PHONE],4)
But, if there is NO "H-PHONE" then what do I have to add to say show "NP"
Thank you