Records for the curren week

Catalina

Registered User.
Local time
Yesterday, 21:06
Joined
Feb 9, 2005
Messages
471
I use this to count the records that have been entered today:

Code:
=DCount("*","tblPeople","PE_Added = #" & Date() & "#")

Now I want to count the records entered in the current week.
Tried some suggestions I found here and there such as:

Code:
?DCount("*","tblPeople","[PE_Added]>=" & Format(DateAdd("d",1-Weekday(Date()),Date()),"#mm\/dd\/yyyy#"))

Can't get it to work, it keeps giving me errors.

All help will be greatly appreciated.

Catalina
 
I think I just found the answer:

Code:
=DCount("*","[tblPeople]","DateAdd('ww', 0, [PE_Added]) Between Date() And DateAdd('d', -6, Date())")

Catalina
 

Users who are viewing this thread

Back
Top Bottom