Well a query has all the same columns so you would have something like
the following three columns
Week Weekday Data
SELECT Datepart("ww",SomeDate) as WeekNo
, Format(SomeDate,"dddd") As WeekDay
, [Data]
FROM SomeTable
ORDER BY Datepart("ww",SomeDate)
, Weekday(SomeDate)
You can use the query to build a report.
In the query design view (query grid)
-- Add your table
-- Add your date field three times
-- Add your data field
-- Change the first date field to
WeekNo: Datepart("ww",SomeDate)
Set Sort to ascending
-- Change the second date field to
WeekDay: Format(SomeDate,"dddd")
-- Change the third date to
Weekday(SomeDate)
and change sort by to ascending and uncheck show field
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
Hi all, a humble question...
I need to create a Query that presents the data per week and days in that
week...in other words:
Week No 1
Monday data
Tuesday data
Wednesday data
Thursday data
Friday data
Saturday data
Sunday data
Thanks for all help and learning that you guys provide!