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.
Belrog
Junior Poster in Training
76 posts since Nov 2007
Reputation Points: 11
Solved Threads: 4