Querying a day of the week

A

Access Painter

I have a table that has a Time/Date field and I want to query just the info
from Saturdays. The field is formatted in the long date format so it includes
the word "Saturday". How do I write the criteria?

I have tried "Like" and it dosn't work. I have used that before to query
street names that were in the same field with the rest of the billing address
with no problem.

I tried changing the Date/Time field to a text field and that dosn't work.

Any Ideas
 
A

Allen Browne

In query design view, type this into the Field row:
Weekday([YourDateFieldNameHere])
Substitute your date/time field name.

In the Criteria row under this, enter:
7

(I'm assuming you changed your field back to Date/Time again.)
 

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

Similar Threads

Query for Day of week 1
day of week 2
Dcount returning no results!!! 0
Last day of the week code? 2
Querying dates & times 6
querying date/time 2
Day of week 6
Querying Dates 5

Top