Re: Year-to-date Totals
- From: "DAngelia" <DAngelia@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 08:20:01 -0800
Joe,
I want to know how to write the calculation for getting the Weekly and YTD
total that will reset to zero next year.
My query looks like this:
qryPayeeInfoTotals: query name
PayeeNum Group By
PayeeDate Max
ChkNum1 Group By
ChkAmt1 Sum
ChkNum2 Group By
ChkAmt2 Sum
--
Thanks
D''''Angelia
"Joe Cilinceon" wrote:
> Ok let me see now if I understand what you are asking. You have a query that
> you want to get totals from for various time periods time. If that is true
> then use the criteria example I posted earlier for the PayeeDate, this will
> give only the Chkamt collected in that period of time. Now for the totals
> you can set up the query to group by date, payee number and chknum with a
> sum on chkamt.
>
> --
>
> Joe Cilinceon
>
>
>
> DAngelia wrote:
> > Joe,
> > What do I have to do about the YTD Total?
> > Are you saying that this criteria will reset the date field to the
> > next year?
> >
> >
> >> DAngelia wrote:
> >>> Hello,
> >>> This is my second time posting this request.
> >>> I wasn't sure if it went threw.
> >>> I have the following fields in a query.
> >>> PayeeNum
> >>> PayeeDate
> >>> ChkNum1
> >>> ChkAmt1
> >>> ChkNum2
> >>> ChkAmt2
> >>> WeeklyTotal: chkAmt1 + chkAmt2
> >>> I get a weeklytotal working okay.
> >>> I would like to get the weeklytotal and ytdtotal (for each year) and
> >>> have them reset to zero at new year.
> >>>
> >>> How? Help!
> >>>
> >>> Thanks
> >>> D''''Angelia
> >>
> >> In the criteria field under PayeeDate you could put Between
> >> DateSerial(Year(Date(), 1, 1) And Date(). I think the syntax for the
> >> DateSerial is correct. I use several queries based on Date fields in
> >> such a manner.
> >>
> >> --
> >>
> >> Joe Cilinceon
>
>
>
>
.
- Follow-Ups:
- Re: Year-to-date Totals
- From: Joe Cilinceon
- Re: Year-to-date Totals
- References:
- Re: Year-to-date Totals
- From: Joe Cilinceon
- Re: Year-to-date Totals
- From: Joe Cilinceon
- Re: Year-to-date Totals
- Prev by Date: query:list records of 3 or more consecutive days
- Next by Date: Re: should I use a crosstab, union, or other
- Previous by thread: Re: Year-to-date Totals
- Next by thread: Re: Year-to-date Totals
- Index(es):
Relevant Pages
|
|