R
Rod
I can not seem to find the problem with this AND statement (everything before
the AND works fine):
Me.tbxMsgToday = Nz(DCount([CALLED_ON], "tblCandidates", "[CALLED_ON] = " &
Format(Date, "\#mm\/dd\/yyyy\#")) And DCount([CALL_RESULTS], "tblCandidates",
[CALL_RESULTS] = "Message"), 0)
The point of this is to count how many records for the current day have
"Message" as the CALL_RESULTS and store that value in tbxMsgToday.
I suspect the usage for the "AND" is incorrect, but I have looked at this
all day and can not find it (perhaps I have been looking at it too long).
Thanks
the AND works fine):
Me.tbxMsgToday = Nz(DCount([CALLED_ON], "tblCandidates", "[CALLED_ON] = " &
Format(Date, "\#mm\/dd\/yyyy\#")) And DCount([CALL_RESULTS], "tblCandidates",
[CALL_RESULTS] = "Message"), 0)
The point of this is to count how many records for the current day have
"Message" as the CALL_RESULTS and store that value in tbxMsgToday.
I suspect the usage for the "AND" is incorrect, but I have looked at this
all day and can not find it (perhaps I have been looking at it too long).
Thanks