Show last weeks fields

Zholt

Registered User.
Local time
Today, 10:53
Joined
May 6, 2009
Messages
19
I want to show only the records that have the date from the last 7 days.
the code that i thought i needed was

>=DateAdd("ww",-1,Date())

However when I put this into the criteria for the query it also shows future dates.

Basically i want it to only show sales from the last 7 days (their is some example data that has future dates that i do not want to be shown)
 
I want to show only the records that have the date from the last 7 days.
the code that i thought i needed was

>=DateAdd("ww",-1,Date())

However when I put this into the criteria for the query it also shows future dates.

Basically i want it to only show sales from the last 7 days (their is some example data that has future dates that i do not want to be shown)

the query is RIGHT. " >= " means "records that have a date newer than -7 days from now. use BETWEEN. like this:
PHP:
between dateadd("d", -7, date()) and date()
]
 
Works a charm thank you V much :):):)
 

Users who are viewing this thread

Back
Top Bottom