Have you considered a mix without equi? It will look something like this:
SELECT A.StudentID, A.StartDate, A.EndDate, A.Field1, A.Field2 FROM tblEnrollment AS A LEFT JOIN tblEnrollment AS B ON (A.StudentID = B.StudentID) AND (A.EndDate=B.StartDate-1) WHERE B.StudentID Is Null;
What gives you is all records that do not have a corresponding record, which begins one day after the end date of the first record.
[Caveat: Beware that you can edit an unequal join in the Access query designer in SQL View. Switching to Design View may result in loss of connection (although if you switch to Access, you will find out about the problem, and if you return to SQL View immediately, you will not lose it)]
If you are then UNION, then with this:
SELECT A.StudentID, A.StartDate, B.EndDate, A.Field1, A.Field2 FROM tblEnrollment AS A INNER JOIN tblEnrollment AS B ON (A.StudentID = B.StudentID) AND (A.EndDate= B.StartDate-1)
He should give you what you need, assuming that at a time no more than two adjacent entries. I'm not sure how you would do this if you had more than two continuous recordings (this might include looking at StartDate-1 compared to EndDate), but it could lead to you starting in the right direction.
source share