Re: Running total problems (Currently using DSum function)
- From: EddieC <EddieC@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 05:31:01 -0700
Thanks for trying to help Duane, but it still didn't work. The runtot field
just prints zero's. Could it be to do with the fact that the information
being summed comes froma calculated field in another query?
Failing that, could you suggest a method that will produce a running total
without
using Dsum?
Thanks,
Ed.
"Duane Hookom" wrote:
> While I don't care for using DSum() in a query like this, try:
> SELECT
> DSum("PercentageOfTotalDecayedActivity","PM_Activity_Percentages",
> "[Collection Confirmed Date]<=#" & [Collection Confirmed Date] & "#") AS
> Runtot,
> PM_Activity_Percentages.[Collection Confirmed Date] AS DateAlias
> FROM PM_Activity_Percentages
> GROUP BY PM_Activity_Percentages.[Collection Confirmed Date]
> ORDER BY PM_Activity_Percentages.[Collection Confirmed Date];
>
> --
> Duane Hookom
> MS Access MVP
>
>
> "EddieC" <EddieC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:2A5BA1CB-6A8D-4E88-864C-5BFDB8337142@xxxxxxxxxxxxxxxx
> > Hi,
> > I am trying to use Dsum (Access 97) in a query, to create a running total
> > of
> > the field 'percentageOfTotalDecayedActivity' from the query
> > 'PM_Activity_Percentages'
> > I have followed microsoft knowledge base article 138911 but the query
> > produces a zero value in the running total field 'runtot'.
> >
> > I believe this may be to do with the fact that my data set contains
> > multiple
> > 'percentageOfTotalDecayedActivity' values for any one date, but I don't
> > know
> > how best to solve it!
> > Please could someone help me with this, or advise me of a better way to do
> > it.
> > Thanks,
> > EddieC.
> >
> > Here is the SQL statement produced by the query at present:
> >
> > SELECT
> > DSum("PercentageOfTotalDecayedActivity","PM_Activity_Percentages","[Collection
> > Confirmed Date]<=" & [DateAlias] & "") AS Runtot,
> > PM_Activity_Percentages.[Collection Confirmed Date] AS DateAlias
> > FROM PM_Activity_Percentages
> > GROUP BY PM_Activity_Percentages.[Collection Confirmed Date]
> > ORDER BY PM_Activity_Percentages.[Collection Confirmed Date];
> >
>
>
>
.
- Follow-Ups:
- Re: Running total problems (Currently using DSum function)
- From: Duane Hookom
- Re: Running total problems (Currently using DSum function)
- References:
- Running total problems (Currently using DSum function)
- From: EddieC
- Re: Running total problems (Currently using DSum function)
- From: Duane Hookom
- Running total problems (Currently using DSum function)
- Prev by Date: Re: Searching all fields in a record
- Next by Date: duplicate values returned
- Previous by thread: Re: Running total problems (Currently using DSum function)
- Next by thread: Re: Running total problems (Currently using DSum function)
- Index(es):
Relevant Pages
|