A akhlaq768 Registered User. Local time Today, 13:28 Joined Jan 17, 2008 Messages 42 Aug 14, 2008 #1 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
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
maxmangion AWF VIP Local time Today, 13:28 Joined Feb 26, 2003 Messages 2,805 Aug 14, 2008 #2 Hi, search the forum for the weekday function. Goodluck
KenHigg Registered User Local time Today, 08:28 Joined Jun 9, 2004 Messages 13,291 Aug 14, 2008 #3 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 -
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 -
KenHigg Registered User Local time Today, 08:28 Joined Jun 9, 2004 Messages 13,291 Aug 14, 2008 #4 Or do what max suggests - (You beat me to the punch )
khawar AWF VIP Local time Today, 17:28 Joined Oct 28, 2006 Messages 870 Aug 14, 2008 #5 SELECT YourTable.YourDate FROM YourTable WHERE (((Format([YourDate],"w"))=1)); Replace yourtable with your table name and yourdate with your date field name
SELECT YourTable.YourDate FROM YourTable WHERE (((Format([YourDate],"w"))=1)); Replace yourtable with your table name and yourdate with your date field name
A akhlaq768 Registered User. Local time Today, 13:28 Joined Jan 17, 2008 Messages 42 Aug 14, 2008 #6 thanks guys for the quick reply....
maxmangion AWF VIP Local time Today, 13:28 Joined Feb 26, 2003 Messages 2,805 Aug 14, 2008 #7 you're welcome