Date today to end of week

torquay

Registered User.
Local time
Today, 17:24
Joined
Dec 27, 2005
Messages
85
I am trying to pull records from today to the end of the week, when I try the code below I get everything from this week, can anyone advise me.

DatePart("ww", [ApptDate]) = DatePart("ww", Now()) and Year( [ApptDate]) = Year(Date())

Thanks Kim
 
Between date() and date() - weekday(Date(),2) + 7

Date() obviously returns today, weekday for today will return 5.
14-Nov - 5 + 7 = 16-Nov

Happy programming !
 
Thank you for your speedy reply.


Works great

Kim
 
Working 'magic' with dates is my specialty...

*POOF*
Its weekend !
 

Users who are viewing this thread

Back
Top Bottom