How about below? (cosidering today's date). Also , try to post exact error message you were receiving.
SELECT CustName,address, DateEnter
FROM SalesStatusReport_view
WHERE DateEnter >= DATEADD(dd,-21,GETDATE()) AND DateEnter <= DATEADD(dd,-6,GETDATE())
ORDER BY DateEnter DESC
|