Link to home
Start Free TrialLog in
Avatar of Rex
RexFlag for United States of America

asked on

How Can My Query Return Only Items With a Date from "Last Week"?

To make it easier, it already assigns a "week ending" date, so every record has a Saturday date. I just want to have the returns limited to the items with the date from "last Saturday"

I will run this query any day from monday to Friday of "This Week", but I always want it to ONLY show the results from last week.

Does that make sense? thanks.
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Where [Week Ending] = date() - weekday(Date(), vbSaturday)
Avatar of Rex

ASKER

Fyed:

My WHERE clause looks like this...

WHERE ((CAR_Requests.Status)="Closed") And Where([Closed Date]=date()-weekday(Date(),vbSaturday))

I got an "Undefined Function in WHERE Clause" Error when trying to execute it. Did I do something wrong?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rex

ASKER

That worked! Thank you.

Rex