470,641 Members | 1,495 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 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.

MusicMogul
Mar 28 '07 #1
2 1568
Rabbit
12,516 Expert Mod 8TB
Have you tried IsError()?
Mar 28 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
Try this ...

Expand|Select|Wrap|Line Numbers
  1.  
  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

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
1 post views Thread by Korara | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.