E
Ellen
Hi,
I was delighted to see this thread, as I want to use the
same function. I added to the thread in its original
location, but then worried that it was so old that I
might not get a response. So I copied it here. Hope
that's OK.
I got the code from the site indicated, but am also
encountering an error, although a different one.
I copied the entire set of code from the Web site to
Module One.
I entered the function below in a column of a query based
on the table containing the Start and End dates.
I get the following error:
"Data type mismatch in criteria expression."
The function, with my info in it, looks like this (copied
straight from the query field):
CalcDaysToProc: dhCountWorkdaysA([dtmDateReceived],
[dtmDateProcessed],Array
(#1/1/2004#,#5/31/2004#,#7/4/2004#,#9/6/2004#,#11/25/2004#
,#11/26/2004#,#12/25/2004#))
[dtmDateReceived] and [dtmDateProcessed] are formatted as
Date/Time Short Dates.
Can you please help me identify my error?
Thank you very much!
Ellen
I was delighted to see this thread, as I want to use the
same function. I added to the thread in its original
location, but then worried that it was so old that I
might not get a response. So I copied it here. Hope
that's OK.
I got the code from the site indicated, but am also
encountering an error, although a different one.
I copied the entire set of code from the Web site to
Module One.
I entered the function below in a column of a query based
on the table containing the Start and End dates.
I get the following error:
"Data type mismatch in criteria expression."
The function, with my info in it, looks like this (copied
straight from the query field):
CalcDaysToProc: dhCountWorkdaysA([dtmDateReceived],
[dtmDateProcessed],Array
(#1/1/2004#,#5/31/2004#,#7/4/2004#,#9/6/2004#,#11/25/2004#
,#11/26/2004#,#12/25/2004#))
[dtmDateReceived] and [dtmDateProcessed] are formatted as
Date/Time Short Dates.
Can you please help me identify my error?
Thank you very much!
Ellen
..-----Original Message-----
Hi,
You must use real field name instead of Start and Ending.
You must be sure dhCountWorkdaysA is in a standard module (not behind a
form, not behind a class).
If you still have an error, "who", "what expression" is reported
"undefined" ?
Vanderghast, Access MVP
.