1) dhCountWorkdaysA comes from "Visual Basic Language Developer's
Handbook"
by Ken Getz and Mike Gilbert
2) I place this function and the other functions that are needed for
this to work in modules.
3) The argument it calls: dhCountWorkdaysA(ByVal dtmStart As Date,
ByVal _ dtmEnd As Date, Optional adtmDates As Variant = Empty) As
Integer
*shows the first two variables as dates.
4) In a query, I call this function to create a calculated field
from the two date fields that are placed in the argument. The two
fields that I am assigning those two variables are indeed date types.
The third varible can take serial dates (e.g. #11/25/2004#)
5. The query saves (no syntax errors) but when I try to run it, it
gives the "Data type mismatch in criteria expression." - under Help,
this says that the field data type does not match what is being
called.
6. Here is my dilemma: I have tripled checked that the field data
type is in fact data types to match *dtmStart As Date and dtmEnd As
Date* ---I cannot think of any other ways that the data is being
mismatched.
IF anyone has used this formula, please let me know exactly how to use
this formula to calculate a new field.
I'm stumped!
Thanks!