467,168 Members | 969 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,168 developers. It's quick & easy.

Evaluating the expression DCOUNT

Hey Everyone,

I'm trying to evaluate the DCOUNT expression. If there were no values found, it gives a "#Error" in my report. That "#Error" message doesn't look good on a report.

How can I allow show "NO values were found " text instead of "#Error"message?
I tried the following expression but it won't work

=IIf(IsNull(DCount("ValueID";[RecordSource];"(" & [Filter] & ") AND (ReportNotAvailable=true)")) ,"No Values were found"', ""). I keeping the that the expression is not valid.

Mar 28 '07 #1
  • viewed: 1469
2 Replies
Expert Mod 8TB
Have you tried IsError()?
Mar 28 '07 #2
Expert Mod 8TB
Try this ...

Expand|Select|Wrap|Line Numbers
  2. =NZ(DCount("ValueID";[RecordSource];"(" & [Filter] & ") AND (ReportNotAvailable=true)"),"No Values were found")
Mar 29 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by jdph40@yahoo.com | last post: by
4 posts views Thread by Will | last post: by
3 posts views Thread by Saxman | last post: by
9 posts views Thread by F6GGR | last post: by
4 posts views Thread by 6afraidbecause789@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.