dbTalk Databases Forums  

HELP....Grouping Dates in a report

comp.database.ms-access comp.database.ms-access


Discuss HELP....Grouping Dates in a report in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jaydeeman
 
Posts: n/a

Default HELP....Grouping Dates in a report - 04-02-2005 , 11:32 AM







I am trying to create a report from a table that includes a list of
dates.

In the report I want to group the data as follows:

FIRST SECTION: All data with certain field value (normal select
query)

SECTION SECTON: Data with a different field value from above with
date values PRIOR TO THE CURRENT DATE.

THIRD SECTION: Data wth same value in the field (as in 2nd section)
but with date values AFTER THE CURRENT DATE.

Can anyone help....I am not too good with SQL but can manage with
queries/reports.

Thanks,



Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: HELP....Grouping Dates in a report - 04-02-2005 , 02:50 PM






Hi:
Consider subreports.
Write 3 queries. The date critereon is easy.
For earlier dates: < date()
For later dates: > date()

Then use the report wizard to create the first report.
The bring the other 2 reports in as subreports.

Unlike subforms there need be no relationship amnong the reports.

Good Luck

Ira Solomon



On Sat, 02 Apr 2005 17:32:54 +0100, jaydeeman <tlswdlman (AT) hotmail (DOT) com>
wrote:

Quote:
I am trying to create a report from a table that includes a list of
dates.

In the report I want to group the data as follows:

FIRST SECTION: All data with certain field value (normal select
query)

SECTION SECTON: Data with a different field value from above with
date values PRIOR TO THE CURRENT DATE.

THIRD SECTION: Data wth same value in the field (as in 2nd section)
but with date values AFTER THE CURRENT DATE.

Can anyone help....I am not too good with SQL but can manage with
queries/reports.

Thanks,



Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.