Valery
Registered User.
- Local time
- Today, 13:59
- Joined
- Jun 22, 2013
- Messages
- 363
I have two tables - one contains customer names, the other customer appointments. So one customer - many appointments.
Each appointment is booked at a set interval (every 3 weeks, 4 weeks, 5 weeks...) which can vary from one appointment to another.
I want to do a count, in a query, to show in a report.
I need to count:
Total Cus_ID by interval - so how many customers are booked every 2 weeks, every 3 weeks, etc.
I need the count to be based on the customer's LAST appointment only.
I have tried, select query (group), crosstab (!)... querying a query... Total line using Max... then Last...
Nothing I tried works. The sum of appointments by interval should equal the total number of clients in the databse... It gives me 4 times that... so it is counting every appointment, not just the last appoinment entered.
PS: I also will be including two other fields: activecustomer = yes and source = Eve - need to know criteria to set for those within the solution you will provide.
Thank you for your support - much appreciated.
Each appointment is booked at a set interval (every 3 weeks, 4 weeks, 5 weeks...) which can vary from one appointment to another.
I want to do a count, in a query, to show in a report.
I need to count:
Total Cus_ID by interval - so how many customers are booked every 2 weeks, every 3 weeks, etc.
I need the count to be based on the customer's LAST appointment only.
I have tried, select query (group), crosstab (!)... querying a query... Total line using Max... then Last...
Nothing I tried works. The sum of appointments by interval should equal the total number of clients in the databse... It gives me 4 times that... so it is counting every appointment, not just the last appoinment entered.
PS: I also will be including two other fields: activecustomer = yes and source = Eve - need to know criteria to set for those within the solution you will provide.
Thank you for your support - much appreciated.