It seems that you are selecting on the wrong check. You are saying that the function datediff should be less or equal to 7. This is not entirely correct. Perhaps you could try testing on the complete datediff result.
Reputation Points: 11
Solved Threads: 4
Junior Poster in Training
Offline 71 posts
since Nov 2007