Hi All,
When I step through the 3 lines of code below the first 2 run fine and make the correct assignment. The third line has a "type mismatch" error. (Third just combines criteria)
rsGtoHistory!gtosread = DCount("gtoimportid", "tblgtoimports", ("[gtodateimported] >= #" & dtRunBegin & "#"))
rsGtoHistory!gtosdonewoerror = DCount("gtoimportid", "tblgtoimports", ("[gtoerrors] = 'No application errors identified' "))
rsGtoHistory!gtosdonewoerror = DCount("gtoimportid", "tblgtoimports", ("[gtoerrors] = 'No application errors identified' ") And ("[gtodateimported] >= #" & dtRunBegin & "#"))
Is it illegal to combine criteria of different types with an "and"? I'm sure I have used multiple criteria before but I cannot remember if they were the same data type or not.
The only alternative I see is to create a recordset of each complex group and do a simple count on the total.
Thanks for your insights,
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.
When I step through the 3 lines of code below the first 2 run fine and make the correct assignment. The third line has a "type mismatch" error. (Third just combines criteria)
rsGtoHistory!gtosread = DCount("gtoimportid", "tblgtoimports", ("[gtodateimported] >= #" & dtRunBegin & "#"))
rsGtoHistory!gtosdonewoerror = DCount("gtoimportid", "tblgtoimports", ("[gtoerrors] = 'No application errors identified' "))
rsGtoHistory!gtosdonewoerror = DCount("gtoimportid", "tblgtoimports", ("[gtoerrors] = 'No application errors identified' ") And ("[gtodateimported] >= #" & dtRunBegin & "#"))
Is it illegal to combine criteria of different types with an "and"? I'm sure I have used multiple criteria before but I cannot remember if they were the same data type or not.
The only alternative I see is to create a recordset of each complex group and do a simple count on the total.
Thanks for your insights,
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.