R
Rose B
I have a table (BefriendContact) which holds details of contacts made with
clients. Each client (ClientID) can have multiple contacts, the key of the
table is a contact ID. I want to be able to count the number of clients
contacted during a period defined by BeginningDate and EndingDate. The DCOUNT
in the report that I am using returns the number of contacts made, rather
than the number of clients contacted (which could be less if they were
contacted more than once duing the period).
=DCount("ClientID","BefriendContact","ContactDate >= #" &
[Forms]![frmReportByDateDialog]![BeginningDate] & "# and ContactDate <= #" &
[Forms]![frmReportByDateDialog]![EndingDate] & "#")
Can anyone suggest how to achieve what I am looking for? Do I need to create
a query to select the distinct lients?
clients. Each client (ClientID) can have multiple contacts, the key of the
table is a contact ID. I want to be able to count the number of clients
contacted during a period defined by BeginningDate and EndingDate. The DCOUNT
in the report that I am using returns the number of contacts made, rather
than the number of clients contacted (which could be less if they were
contacted more than once duing the period).
=DCount("ClientID","BefriendContact","ContactDate >= #" &
[Forms]![frmReportByDateDialog]![BeginningDate] & "# and ContactDate <= #" &
[Forms]![frmReportByDateDialog]![EndingDate] & "#")
Can anyone suggest how to achieve what I am looking for? Do I need to create
a query to select the distinct lients?