|
Hey everyone, this one is a doozie (for me at least)
I have a large table (>1M entries) that contains Client IDs and Visit Dates
I am trying to create a query that will indicate when a client starts a new session and the date of, and when the client ends a session and the date of termination.
A session is ended if the client is inactive for X (say 21) days. I have done this by exporting the table to Excel and writing code in Excel, but I would like a solution to be done in Access if possible (much cleaner) so I don't have to keep jumping between applications.
Attached is the basics of what I have done in Excel. I then created a 'condensed' worksheet with just the 'Start' and 'End' dates for each patient.
Cell M1 contains the number of days that I want to classify as the cut-off for a new session (X, or right now 21)
I would be surprised if I asked my question in a clear manner, so please ask more questions so I can help people understand my problem.
This site is great, and I love the help I have gotten before. Thank you so much for your time,
-Chris
|