K
Karl Burrows
Using Access 2003 & 2007. I am working with a local food pantry and they
have changed their policy for time period between client referrals. They
want to track the effect of this change on overall food donations. I can
pull the number of times a client ID occurs, but whenever I give it a date
range, the values then go away.
Basically, they need to count total referrals and number of duplicate
referrals for a given period of time. Not a lot of data needed, just a
total, but I am having a bear of a time trying to get this to work.
Here is my SQL:
SELECT Client1.Date, Client1.SS, Min(Client1.SS) AS min_SS, Max(Client1.SS)
AS max_SS, Count(*) AS rec_count
FROM Client1
GROUP BY Client1.Date, Client1.SS
HAVING ((Not (Client1.Date) Is Null And (Client1.Date) Between [Start Date]
And [End Date]) AND ((Count(*))>1))
ORDER BY Client1.SS;
Can anyone offer any suggestions? Thanks!
have changed their policy for time period between client referrals. They
want to track the effect of this change on overall food donations. I can
pull the number of times a client ID occurs, but whenever I give it a date
range, the values then go away.
Basically, they need to count total referrals and number of duplicate
referrals for a given period of time. Not a lot of data needed, just a
total, but I am having a bear of a time trying to get this to work.
Here is my SQL:
SELECT Client1.Date, Client1.SS, Min(Client1.SS) AS min_SS, Max(Client1.SS)
AS max_SS, Count(*) AS rec_count
FROM Client1
GROUP BY Client1.Date, Client1.SS
HAVING ((Not (Client1.Date) Is Null And (Client1.Date) Between [Start Date]
And [End Date]) AND ((Count(*))>1))
ORDER BY Client1.SS;
Can anyone offer any suggestions? Thanks!