473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Grouping by Dates in a Report

hi-

i have a simple table. i have 3 fields, id, indate, and outdate. i
want to group these fields in my report by month. for example, for
february 2004, i want to display all the ids and dates for those
records with indates during the month of february. i'm trying to get
my report to look kind of like this...

MONTH CASEID INDATE OUTDATE

January 2004 1 1/10/04 1/24/04
2 1/15/04 2/10/04

TOTAL = 2

February 2002

1 2/1/04 2/15/04
45 2/5/04 2/22/04
8 2/22/04 2/24/04

TOTAL = 3
is there a way or function in the report wizard to group by months?

thanks,

miguel
Nov 12 '05 #1
3 1685
Use the Month function, the Year function, or Format, or all of them, to
extract the Month in the Query which you use as RecordSource for the Report.
Use the Report's Sorting and Grouping to group on Year and Month, and to
sort on Year and Month Number.

Larry Linson
Microsoft Access MVP

"Miguelito Bain" <mi***********@hotmail.com> wrote in message
news:1b**************************@posting.google.c om...
hi-

i have a simple table. i have 3 fields, id, indate, and outdate. i
want to group these fields in my report by month. for example, for
february 2004, i want to display all the ids and dates for those
records with indates during the month of february. i'm trying to get
my report to look kind of like this...

MONTH CASEID INDATE OUTDATE

January 2004 1 1/10/04 1/24/04
2 1/15/04 2/10/04

TOTAL = 2

February 2002

1 2/1/04 2/15/04
45 2/5/04 2/22/04
8 2/22/04 2/24/04

TOTAL = 3
is there a way or function in the report wizard to group by months?

thanks,

miguel

Nov 12 '05 #2
On 23 Feb 2004 19:43:16 -0800, Miguelito Bain wrote:
hi-

i have a simple table. i have 3 fields, id, indate, and outdate. i
want to group these fields in my report by month. for example, for
february 2004, i want to display all the ids and dates for those
records with indates during the month of february. i'm trying to get
my report to look kind of like this...

MONTH CASEID INDATE OUTDATE

January 2004 1 1/10/04 1/24/04
2 1/15/04 2/10/04

TOTAL = 2

February 2002

1 2/1/04 2/15/04
45 2/5/04 2/22/04
8 2/22/04 2/24/04

TOTAL = 3
is there a way or function in the report wizard to group by months?

thanks,

miguel


The second step in the process allows you to create up to four grouping
levels. Once a level is defined, you can click on "Grouping Options" to
further define them.
--
Mike Storr
www.veraccess.com
Nov 12 '05 #3
You want to list the case under the month heading if any part of that case
falls within the month.

The case should show under the month if:
- the case starts before the month ends, AND
- the case ends after the month starts.

To achieve this, you need a table of months (tblMonth) this this field:
MonthStart Date/Time

Create a query into tblMonth and your existing table.
No join between the 2 tables.

In the Criteria row under INDATE:
< DateAdd("m", 1, [MonthStart])
In the Criteria row under OUTDATE:
= [MonthStart]
If you wish to filter the query to particular months, filter on
tblMonth.MonthStart.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Miguelito Bain" <mi***********@hotmail.com> wrote in message
news:1b**************************@posting.google.c om... hi-

i have a simple table. i have 3 fields, id, indate, and outdate. i
want to group these fields in my report by month. for example, for
february 2004, i want to display all the ids and dates for those
records with indates during the month of february. i'm trying to get
my report to look kind of like this...

MONTH CASEID INDATE OUTDATE

January 2004 1 1/10/04 1/24/04
2 1/15/04 2/10/04

TOTAL = 2

February 2002

1 2/1/04 2/15/04
45 2/5/04 2/22/04
8 2/22/04 2/24/04

TOTAL = 3
is there a way or function in the report wizard to group by months?

thanks,

miguel

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amber | last post by:
Hello, I have a report in VB.NET/Crystal Reports. I have a criteria form that users select between 2 different types of grouping (group by category or group by year). Can I programmatically...
0
by: Stephen | last post by:
I have the following xslt and I am trying to use two levels of grouping. I am first grouping on the report category, then on the report type. The problem is I am sure I have to apply some sort of...
1
by: Brian Coy | last post by:
I am creating a database to track scrap on a daily basis at my plant. I have to provide a weekly scrap report with the amount of each part scrapped per day. I have the basic database set up, and...
5
by: Alicia | last post by:
Yes, but will that skip a week and group by the date for me? I basically wanted something that would do a count of the dates, then group them by their week name.. BEFORE: Resource Date ...
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
5
by: Peter Bailey | last post by:
I have a query that returns , and : 12/05/04 3 Wednesday 13/05/04 0 Thursday and so on what I would like to do now is count the number of bookings by week so from monday to...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
1
by: John | last post by:
I'm building a report where each row represents one month and its 1 to 5 weeks. A report query groups the source table date into a "month and year" expression. A subreport links to the main report...
2
by: CoopEng | last post by:
Hey Team, Here's one for you all to ponder. In Access 2003, I'm updating a Operations Database for a manufacturing plant. The data is of production runs for the plant. So there are start date's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.