Link to home
Start Free TrialLog in
Avatar of s7uart
s7uart

asked on

Count in a Microsoft Access Query

I have a form called "FrmNotContacted". it is based on a query "QryNotContacted". This form updates every 60 seconds and shows all of the new leads (imported using web response grabber) that have not been contacted and the ones that have been contacted but appointments have not been made.
The first problem I have is that I need to show a column that gives me the total times we have tried to contact the client.
I have a related table "Notes". When I use the "count" function in the query "QryNotContacted".  to count the records. The problem is it no longer shows the records where the count is less than 1 (ie the new not contacted records)

The second problem is that I want to count the records where the "NoteAddedDate" field in the "notes" table is less than 10 days old

I am self taught with Access so please could you offer step by step instructions so I can understand the theory behind the answers.
ASKER CERTIFIED SOLUTION
Avatar of mildurait
mildurait
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please note, I dont know all the column names in your queries, so you will need to adjust them accordingly.
How do you do the count in Notes.  I need to see your criteria.
-Sum(NoteAddedFieldDate+10>Date())  will count the number of occurrences where the NoteAddFieldDate is less than 10 days old.