G
Guest
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])
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])