Grouping dates into Weeks?

Thom

New member
Local time
Yesterday, 22:23
Joined
May 9, 2005
Messages
8
Hello, I am new to Access and I am having a problem with something. I have a query which returns, among other things, dates. I need to organize (group) the dates into weeks. Does Access have a function which could do this? Or some other way of grouping the dates? Or How would I got about writing a function in Access?
This is done in a Pivot Table right now, and I just use a calculated field which is the date / 7. This gives some god awful numbers (like 5944), and not anything like what I want. I would want the function to return something like,
"Feb. 5, 2005 - Feb. 12, 2005". Any suggestions?
 
Check the datepart function in Access help. This may give you some ideas.

Len B
 
Use a totals query and GroupBy week. Create a report based on the query
 

Users who are viewing this thread

Back
Top Bottom