Afternoon all.
I am trying to solve a bit of a problem and hoping someone here may have some advice for me.
I have one table of data (contracts) and need to extract from this any instances where the dates overlap.
So the logic should be:
ref <> ref ok
ref = ref and Start Date > End Date ok
ref = ref and Start Date <= End Date overlap
ref = ref and End Date < Start Date ok
ref = ref and End Date >= Start date overlap
I've tried http://allenbrowne.com/appevent.html but doesn't seem to work with my data potentially because of trying to exclude instances where the ref does not match.
What I have in the field of the query designer is:
NoClash: ([tbldata_1].[S Date]>[tbldata].[E Date]) Or ([tbldata_1].[E Date]<[tbldata].[S Date])
But what I'm getting is multiple entries per ref # and both overlapping and not overlapping date ranges.
Any advice would be much appreciated.
I am trying to solve a bit of a problem and hoping someone here may have some advice for me.
I have one table of data (contracts) and need to extract from this any instances where the dates overlap.
So the logic should be:
ref <> ref ok
ref = ref and Start Date > End Date ok
ref = ref and Start Date <= End Date overlap
ref = ref and End Date < Start Date ok
ref = ref and End Date >= Start date overlap
I've tried http://allenbrowne.com/appevent.html but doesn't seem to work with my data potentially because of trying to exclude instances where the ref does not match.
What I have in the field of the query designer is:
NoClash: ([tbldata_1].[S Date]>[tbldata].[E Date]) Or ([tbldata_1].[E Date]<[tbldata].[S Date])
But what I'm getting is multiple entries per ref # and both overlapping and not overlapping date ranges.
Any advice would be much appreciated.