Reports grouped by months.. (1 Viewer)

endri81

Registered User.
Local time
Today, 12:44
Joined
Jul 5, 2010
Messages
121
Hi
I have data in intervals by 3 months as in file attached where is shown 3month beginning date and ending date.I need to group by 6 month or one year period.
How is this possible?
Regards
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    90 KB · Views: 86

endri81

Registered User.
Local time
Today, 12:44
Joined
Jul 5, 2010
Messages
121
Access 2003.
This is not by my choice but the office where the program will be used have only Access 2003 and no will to change :)
 

vbaInet

AWF VIP
Local time
Today, 20:44
Joined
Jan 22, 2010
Messages
26,374
Access 2003 is perfectly fine :)

To group by year you use the Year() function to get the year portion of your date field and group on that.

To group by 6 month intervals you would do something like:
Code:
Month([DateField]) < 7
... then group on this field. This will return True (i.e. -1) if the month is between Jan and Jul, and False if it isn't (i.e. 0). So -1 will come before 0.
 

Users who are viewing this thread

Top Bottom