R
RussCRM
I work for a small homeless shelter. I have a table called "Services"
that contains records with a ServiceID, GuestID, ServiceDate, and
ServiceType. Such as:
ServiceID (key) GuestID ServicesDate ServicesType
1875 4572 02/01/08 Men's Dorm
1877 9762 02/02/08 Men's Dorm
1892 9762 02/03/08 Men's Dorm
We also have a table called "Guest" with each guest's name and other
information.
For various reasons, we keep an ongoing count of how many nights in a
row a guest has stayed.
To count the total number of nights for a guest, we usually do a
dcount type of thing on ServiceID.
Anyone have any ideas how I could get a count of the number of days in
a row a guest has stayed?
that contains records with a ServiceID, GuestID, ServiceDate, and
ServiceType. Such as:
ServiceID (key) GuestID ServicesDate ServicesType
1875 4572 02/01/08 Men's Dorm
1877 9762 02/02/08 Men's Dorm
1892 9762 02/03/08 Men's Dorm
We also have a table called "Guest" with each guest's name and other
information.
For various reasons, we keep an ongoing count of how many nights in a
row a guest has stayed.
To count the total number of nights for a guest, we usually do a
dcount type of thing on ServiceID.
Anyone have any ideas how I could get a count of the number of days in
a row a guest has stayed?