Query for Day of week

A

Access Painter

I posted this earlier but it never showed up. Sorry if this is a duplicate!

I want to return info from a table using a query that only returns the info
that occured on Saturdays. The date field is formatted as a Date/Time field
formatted for the long date. Example: Saturday November 20 2008"

How do I write the criteria? I have tried "Like" as well as "and". Short of
entering 52 dates in the criteria I am stumped.

Any Help Appreciated
 
R

Rob Parker

Add a calculated field to your query, with the expression:
Weekday([YourDateField])
Set the criterion on this to 7, and you will return only Saturdays.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top