PC Review


Reply
Thread Tools Rate Thread

Creating Quarterly totals

 
 
watson925
Guest
Posts: n/a
 
      12th Nov 2008
I have generated a crosstab query to show invoices by customer by month for
2008. I would like to total the invoices for the last three months. I have
a field in my table the is Month Number and would like the flexibility to
change the query to select any 3 months I am looking for. I have tried dsum
but not working.

I would appreciate any help. thanks
--
watson925
 
Reply With Quote
 
 
 
 
Beetle
Guest
Posts: n/a
 
      12th Nov 2008
One option.

In your crosstab query, in the criteria row for MonthNo put;

Between [Enter Beginning Month] And [Enter Ending Month]

You would then be prompted for the values each time the xtab query is
executed.
--
_________

Sean Bailey


"watson925" wrote:

> I have generated a crosstab query to show invoices by customer by month for
> 2008. I would like to total the invoices for the last three months. I have
> a field in my table the is Month Number and would like the flexibility to
> change the query to select any 3 months I am looking for. I have tried dsum
> but not working.
>
> I would appreciate any help. thanks
> --
> watson925

 
Reply With Quote
 
watson925
Guest
Posts: n/a
 
      13th Nov 2008
Thank you - that works when I use a select query but not a cross tab - not
sure why?
--
watson925


"Beetle" wrote:

> One option.
>
> In your crosstab query, in the criteria row for MonthNo put;
>
> Between [Enter Beginning Month] And [Enter Ending Month]
>
> You would then be prompted for the values each time the xtab query is
> executed.
> --
> _________
>
> Sean Bailey
>
>
> "watson925" wrote:
>
> > I have generated a crosstab query to show invoices by customer by month for
> > 2008. I would like to total the invoices for the last three months. I have
> > a field in my table the is Month Number and would like the flexibility to
> > change the query to select any 3 months I am looking for. I have tried dsum
> > but not working.
> >
> > I would appreciate any help. thanks
> > --
> > watson925

 
Reply With Quote
 
Beetle
Guest
Posts: n/a
 
      13th Nov 2008
Hmmmmm....

What do you mean when you say it doesn't work?

In one of my applications I have a crosstab query that is similar to the
one you described. It has Month number as the Column Heading. When
I put that in the criteria row and enter 1 and 3 at the prompts it returns
only the first three months.
--
_________

Sean Bailey


"watson925" wrote:

> Thank you - that works when I use a select query but not a cross tab - not
> sure why?
> --
> watson925
>
>
> "Beetle" wrote:
>
> > One option.
> >
> > In your crosstab query, in the criteria row for MonthNo put;
> >
> > Between [Enter Beginning Month] And [Enter Ending Month]
> >
> > You would then be prompted for the values each time the xtab query is
> > executed.
> > --
> > _________
> >
> > Sean Bailey
> >
> >
> > "watson925" wrote:
> >
> > > I have generated a crosstab query to show invoices by customer by month for
> > > 2008. I would like to total the invoices for the last three months. I have
> > > a field in my table the is Month Number and would like the flexibility to
> > > change the query to select any 3 months I am looking for. I have tried dsum
> > > but not working.
> > >
> > > I would appreciate any help. thanks
> > > --
> > > watson925

 
Reply With Quote
 
watson925
Guest
Posts: n/a
 
      13th Nov 2008
It says it does not recognize [Enter Beginning Month] as a valid field name
or expression. When I ran it as a select query, it does not add the months
together but shows them separately. I want them added together - a sum of
all three months.

Hope that makes sense - thanks for your continued feedback.
--
watson925


"Beetle" wrote:

> Hmmmmm....
>
> What do you mean when you say it doesn't work?
>
> In one of my applications I have a crosstab query that is similar to the
> one you described. It has Month number as the Column Heading. When
> I put that in the criteria row and enter 1 and 3 at the prompts it returns
> only the first three months.
> --
> _________
>
> Sean Bailey
>
>
> "watson925" wrote:
>
> > Thank you - that works when I use a select query but not a cross tab - not
> > sure why?
> > --
> > watson925
> >
> >
> > "Beetle" wrote:
> >
> > > One option.
> > >
> > > In your crosstab query, in the criteria row for MonthNo put;
> > >
> > > Between [Enter Beginning Month] And [Enter Ending Month]
> > >
> > > You would then be prompted for the values each time the xtab query is
> > > executed.
> > > --
> > > _________
> > >
> > > Sean Bailey
> > >
> > >
> > > "watson925" wrote:
> > >
> > > > I have generated a crosstab query to show invoices by customer by month for
> > > > 2008. I would like to total the invoices for the last three months. I have
> > > > a field in my table the is Month Number and would like the flexibility to
> > > > change the query to select any 3 months I am looking for. I have tried dsum
> > > > but not working.
> > > >
> > > > I would appreciate any help. thanks
> > > > --
> > > > watson925

 
Reply With Quote
 
RR1976
Guest
Posts: n/a
 
      13th Nov 2008
I'm pretty sure in a crosstab query you will need to set [enter beginning
month] and [enter ending month]as query parameters. If you right-click in
the query and then select parameters you will pull up a small screen that
sets these parameters. It should look something like this:

Parameter Data Type

[enter beginning month] Date/Time
[enter ending month] Date/Time

This might work
--
Ray Rivera


"watson925" wrote:

> It says it does not recognize [Enter Beginning Month] as a valid field name
> or expression. When I ran it as a select query, it does not add the months
> together but shows them separately. I want them added together - a sum of
> all three months.
>
> Hope that makes sense - thanks for your continued feedback.
> --
> watson925
>
>
> "Beetle" wrote:
>
> > Hmmmmm....
> >
> > What do you mean when you say it doesn't work?
> >
> > In one of my applications I have a crosstab query that is similar to the
> > one you described. It has Month number as the Column Heading. When
> > I put that in the criteria row and enter 1 and 3 at the prompts it returns
> > only the first three months.
> > --
> > _________
> >
> > Sean Bailey
> >
> >
> > "watson925" wrote:
> >
> > > Thank you - that works when I use a select query but not a cross tab - not
> > > sure why?
> > > --
> > > watson925
> > >
> > >
> > > "Beetle" wrote:
> > >
> > > > One option.
> > > >
> > > > In your crosstab query, in the criteria row for MonthNo put;
> > > >
> > > > Between [Enter Beginning Month] And [Enter Ending Month]
> > > >
> > > > You would then be prompted for the values each time the xtab query is
> > > > executed.
> > > > --
> > > > _________
> > > >
> > > > Sean Bailey
> > > >
> > > >
> > > > "watson925" wrote:
> > > >
> > > > > I have generated a crosstab query to show invoices by customer by month for
> > > > > 2008. I would like to total the invoices for the last three months. I have
> > > > > a field in my table the is Month Number and would like the flexibility to
> > > > > change the query to select any 3 months I am looking for. I have tried dsum
> > > > > but not working.
> > > > >
> > > > > I would appreciate any help. thanks
> > > > > --
> > > > > watson925

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Current year Quarterly totals SoggyCashew Microsoft Access Getting Started 2 3rd Sep 2008 06:26 PM
Year to date totals from quarterly data in same query =?Utf-8?B?SGFrbWFuZ3Y=?= Microsoft Access Reports 2 11th Oct 2007 10:57 PM
creating a quarterly report =?Utf-8?B?MjM5NQ==?= Microsoft Access Reports 4 6th Nov 2006 04:43 PM
quarterly totals =?Utf-8?B?RGF2a28=?= Microsoft Excel Charting 1 26th Apr 2005 03:50 AM
Figuring totals by periods (Monthly, Quarterly, etc.) nd2no Microsoft Excel Worksheet Functions 2 10th Jun 2004 12:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:28 AM.