A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Grouping on Time Range



 
 
Thread Tools Display Modes
  #1  
Old May 26th, 2004, 04:43 PM
Michael Noblet
external usenet poster
 
Posts: n/a
Default Grouping on Time Range

I have a report that I need to group by 3 time
ranges.00:00:00 - 07:00:00 , 07:00:01 - 15:00:00,
15:00:01 - 23:59:99.

The time is a column in my report. Is there a way to do
this or do I need to build some sort of expression in a
query that will return a value for the 3 groups?
  #2  
Old May 26th, 2004, 06:08 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default Grouping on Time Range

Michael Noblet wrote:

I have a report that I need to group by 3 time
ranges.00:00:00 - 07:00:00 , 07:00:01 - 15:00:00,
15:00:01 - 23:59:99.

The time is a column in my report. Is there a way to do
this or do I need to build some sort of expression in a
query that will return a value for the 3 groups?



You need some kind of expression in either Sorting and
Grouping or the query. Depending on your other needs,
something like this Sorting and Grouping could do it:

=IIf(fldtime = #7:00#, 1, IIf(fldtime = #15:00#, 2, 3))
--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.