Which dates occured on a Sunday?

akhlaq768

Registered User.
Local time
Today, 13:28
Joined
Jan 17, 2008
Messages
42
how can i write a query so it picks up all the dates that occured on a Sunday?

so i have a date field with over 300 records, i need to highlight which of those records (dates) are on a sunday
 
You should be able to use the datepart() function to do this - Take a look at the MS Access help on it and post back if you need help using in it - :)
 
Or do what max suggests - :p

(You beat me to the punch :) )
 
SELECT YourTable.YourDate
FROM YourTable
WHERE (((Format([YourDate],"w"))=1));

Replace yourtable with your table name and
yourdate with your date field name
 

Users who are viewing this thread

Back
Top Bottom