Re: criteria error when running a report
From: John Spencer (MVP) (spencer4_at_comcast.net)
Date: 01/03/05
- Next message: Karen Middleton: "How to read a table record by record and process and update another table"
- Previous message: Sheryl: "criteria error when running a report"
- In reply to: Sheryl: "criteria error when running a report"
- Next in thread: Sheryl: "Re: criteria error when running a report"
- Reply: Sheryl: "Re: criteria error when running a report"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 02 Jan 2005 20:11:17 -0500
Try
IIF(IncheckDate Is Null,0,dhCountWorkdays(Date(),[InCheckDate]))
Which should return 0 if InCheckCate is "blank" or try
\
IIF(InCheckDate Is Null,Null,dhCountWorkdays(Date(),[InCheckDate]))
Sheryl wrote:
>
> I have a function dhCountWorkdays that I use in my query and then run a
> report from that query.
>
> My function gives me the workdays between the current date and
> [InCheckDate] field. The query runs, but puts an error in the blank field
> for my expression. That’s not a problem since no one would ever see the
> query.
>
> I have a report that is based on that query and I can’t run the report due
> to getting the error message ‘Data type mismatch in the criteria expression’.
> How can I get my query or report to ignore the blanks in my [InCheckDate]
> field when I use the dhCountWorkdays expression? Is there an IIf statement
> that can be used with my current expression?
>
> My expression in my query now is: Expr5:
> dhCountWorkdays(Date(),[InCheckDate])
- Next message: Karen Middleton: "How to read a table record by record and process and update another table"
- Previous message: Sheryl: "criteria error when running a report"
- In reply to: Sheryl: "criteria error when running a report"
- Next in thread: Sheryl: "Re: criteria error when running a report"
- Reply: Sheryl: "Re: criteria error when running a report"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|