Evaluating the expression DCOUNT

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MusicMogul
    New Member
    • Mar 2007
    • 4

    #1

    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(DCo unt("ValueID";[RecordSource];"(" & [Filter] & ") AND (ReportNotAvail able=true)")) ,"No Values were found"', ""). I keeping the that the expression is not valid.

    MusicMogul
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Have you tried IsError()?

    Comment

    • MMcCarthy
      Recognized Expert MVP
      • Aug 2006
      • 14387

      #3
      Try this ...

      Code:
       
      =NZ(DCount("ValueID";[RecordSource];"(" & [Filter] & ") AND (ReportNotAvailable=true)"),"No Values were found")

      Comment

      Working...