G
Guest
The following function works:
=DCount("[ActionCode]","qryrptTrackingReport","[ActionCode] In (2,4,6) AND
[FollowUp_Date] between Date() and Date() + 7").
However, the following does not work I get (#Error):
=DCount("[TreatmentDate]","tblTreatmentSummary","[Consultation] In
('PP','Co','New') And [EntryDate] between #" & Date()-14 & "# and #" &
Date()-20 & "# and [SummaryType] = 'TreatmentSummary' and [TreatmentDate] >
Date()-180")
I think the In criteria is causing the problem. I tried without the
apostrophe and still does not work. The second case is text not numbers like
the first case. What am I doing wrong. any help please.
thanks
Al
=DCount("[ActionCode]","qryrptTrackingReport","[ActionCode] In (2,4,6) AND
[FollowUp_Date] between Date() and Date() + 7").
However, the following does not work I get (#Error):
=DCount("[TreatmentDate]","tblTreatmentSummary","[Consultation] In
('PP','Co','New') And [EntryDate] between #" & Date()-14 & "# and #" &
Date()-20 & "# and [SummaryType] = 'TreatmentSummary' and [TreatmentDate] >
Date()-180")
I think the In criteria is causing the problem. I tried without the
apostrophe and still does not work. The second case is text not numbers like
the first case. What am I doing wrong. any help please.
thanks
Al