Hello,
I have been looking at some running sum examples (http://
support.microsoft.com/kb/290136), but can not work out how to apply it
to my query.
I have Recieved, Recieved Amount .. then Cleared, Cleared Amount .. i
am trying to work out a running backlog of work.
So
A: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog, Backlog
Amount.
B: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of A -
Cleared + Received.
C: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of B -
Cleared + Received.
and so on?
Im guessing its a DSUM thing, but i cant make the connection.
Appreciate any help.
Regards,
|
|
0
|
|
|
|
Reply
|
NPell
|
1/27/2010 12:50:33 PM |
|
Would you care to expand on your field types and explain how you want to
calculate Backlog and Backlog Amount?
Perhaps a couple rows of sample data would help us to figure out what you are
trying to do.
For instance is received a Date field? Is Cleared another Date field? If so
how are the recieved field and the cleared related to each other? Or is there
a relationship.
John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
NPell wrote:
> Hello,
>
> I have been looking at some running sum examples (http://
> support.microsoft.com/kb/290136), but can not work out how to apply it
> to my query.
>
> I have Recieved, Recieved Amount .. then Cleared, Cleared Amount .. i
> am trying to work out a running backlog of work.
>
> So
> A: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog, Backlog
> Amount.
> B: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of A -
> Cleared + Received.
> C: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of B -
> Cleared + Received.
> and so on?
>
> Im guessing its a DSUM thing, but i cant make the connection.
>
> Appreciate any help.
> Regards,
|
|
0
|
|
|
|
Reply
|
John
|
1/27/2010 1:59:45 PM
|
|
On 27 Jan, 13:59, John Spencer <spen...@chpdm.edu> wrote:
> Would you care to expand on your field types and explain how you want to
> calculate Backlog and Backlog Amount?
>
> Perhaps a couple rows of sample data would help us to figure out what you=
are
> trying to do.
>
> For instance is received a Date field? =A0Is Cleared another Date field? =
=A0If so
> how are the recieved field and the cleared related to each other? =A0Or i=
s there
> a relationship.
>
> John Spencer
> Access MVP 2002-2005, 2007-2010
> The Hilltop Institute
> University of Maryland Baltimore County
>
>
>
> NPell wrote:
> > Hello,
>
> > I have been looking at some running sum examples (http://
> > support.microsoft.com/kb/290136), but can not work out how to apply it
> > to my query.
>
> > I have Recieved, Recieved Amount .. then Cleared, Cleared Amount .. i
> > am trying to work out a running backlog of work.
>
> > So
> > A: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog, Backlog
> > Amount.
> > B: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of A -
> > Cleared + Received.
> > C: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of B -
> > Cleared + Received.
> > and so on?
>
> > Im guessing its a DSUM thing, but i cant make the connection.
>
> > Appreciate any help.
> > Regards,- Hide quoted text -
>
> - Show quoted text -
Sorry, this is on a date by date basis and the cleared / recieved
entries are numbers.
Recieved Cleared Backlog/
Outstanding
01/01/2010 12 =A3200 6 =A3150 6 =A350
02/01/2010 10 =A3400 3 =A3250 13 =A3200
03/01/2010 4 =A3100 10 =A3150 7 =A3150
Does this help a bit more??
|
|
0
|
|
|
|
Reply
|
NPell
|
1/27/2010 3:24:08 PM
|
|
PERHAPS something like the following SQL statement. Obviously you need to
used your field and table names.
SELECT A.[TheDate], A.[Received], A.[AmountReceived], A.[Cleared],
A.[AmountCleared]
, Sum(B.[Received]) - Sum(B.[Cleared]) as Backlog
, Sum(B.[AmountReceived]) - Sum(B.[AmountCleared]) as BackLogAmount
FROM [TheTable] as A INNER JOIN [TheTable] As B
ON A.[TheDate] >= B.[TheDate]
GROUP BY A.[TheDate], A.[Received], A.[AmountRecieved], A.[Cleared],
A.[AmountCleared]
John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
NPell wrote:
> On 27 Jan, 13:59, John Spencer <spen...@chpdm.edu> wrote:
>> Would you care to expand on your field types and explain how you want to
>> calculate Backlog and Backlog Amount?
>>
>> Perhaps a couple rows of sample data would help us to figure out what you are
>> trying to do.
>>
>> For instance is received a Date field? Is Cleared another Date field? If so
>> how are the recieved field and the cleared related to each other? Or is there
>> a relationship.
>>
>> John Spencer
>> Access MVP 2002-2005, 2007-2010
>> The Hilltop Institute
>> University of Maryland Baltimore County
>>
>>
>>
>> NPell wrote:
>>> Hello,
>>> I have been looking at some running sum examples (http://
>>> support.microsoft.com/kb/290136), but can not work out how to apply it
>>> to my query.
>>> I have Recieved, Recieved Amount .. then Cleared, Cleared Amount .. i
>>> am trying to work out a running backlog of work.
>>> So
>>> A: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog, Backlog
>>> Amount.
>>> B: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of A -
>>> Cleared + Received.
>>> C: Recieved, Rec Amount .. Cleared, Clrd Amount .. Backlog of B -
>>> Cleared + Received.
>>> and so on?
>>> Im guessing its a DSUM thing, but i cant make the connection.
>>> Appreciate any help.
>>> Regards,- Hide quoted text -
>> - Show quoted text -
>
> Sorry, this is on a date by date basis and the cleared / recieved
> entries are numbers.
>
> Recieved Cleared Backlog/
> Outstanding
> 01/01/2010 12 �200 6 �150 6 �50
> 02/01/2010 10 �400 3 �250 13 �200
> 03/01/2010 4 �100 10 �150 7 �150
>
> Does this help a bit more??
|
|
0
|
|
|
|
Reply
|
John
|
1/27/2010 4:09:31 PM
|
|
|
3 Replies
377 Views
(page loaded in 0.089 seconds)
Similiar Articles: Running Sum - microsoft.public.access.queriesHello, I have been looking at some running sum examples (http:// support.microsoft.com/kb/290136), but can not work out how to apply it to my que... Running sum on report - microsoft.public.accessRunning sum on report Hello, Using Access =9203=85 I have a report that=92s structured like this: Page Header User Header Month Header De... Reset running sum on group level - microsoft.public.access.reports ...Hi, I created a report in MS Access with several group levels. It reports kilometers by month, by car and by year. I use the running sum function... Running Sum in a Form Follow - Microsoft Newsgroupsi have continuous form and i want to have a running sum on it just like on the report. Your help is very much appreciated. thanks. -- Message poste... Stop running sum(Over All) when customer change - microsoft.public ...Dear All I hv report based on tblTransaction which contains many customers with their transactions by date wise. I grouped report on CustomerID ... Running Sum on a Continuous View subform - microsoft.public.access ...Hi All, This is a slightly different question than my last. I have a Continuous View subform designed to look like a Datasheet View subform, with th... Calculate Running Sum on Datasheet Veiw Form - microsoft.public ...I have a Datasheet View form with the following fields: Unitprice Subtotal Tax Linetotal Grandtotal The "Tax" field is a calculated field from the "S... Running Sum Within Union Query - microsoft.public.access.queries ...Reset running sum on group level - microsoft.public.access.reports ... Sum of a UNION Query - microsoft.public.access... returned from the following two queries ... Running Sum function in query - microsoft.public.access.queries ...Running Sum SQL Query Example - Access Programmers: Microsoft ... global_add = GBL_Sum End Function. Here is the link to download the Access running sum calculation ... a running sum (by date) in a query? - microsoft.public.access ...Is this possible? I have dates (some of which are the same) and I would like to use them to create a running sum of another column in my query. Is thi... Calculate a running sum (cumulative total) - Access - Office.comYou can use Access to create what is called a running sum in a report. A running sum is a total that is accumulated from record to record across a group, or even ... Excel - Running Sum - How do I take... - Free Excel HelpRunning Sum - How do I take a column that adds up to a sum and then... - Free Excel Help ACC2000: How to Create a Grouped Running Sum in a QueryThis article shows you how to create a running sum per group in a Microsoft Access query. The preferred method for producing running sums per group is to ... Running Sum in Access Reports - Access Programmers: Microsoft ...Running Sum in Microsoft Access Report Continuous Sum MS Access Report Detail Lines. Calculate running sum can be accomplished within an Access report using Access ... How to Create a Running Sum in an Access Query | eHow.comIn Access, a running sum is a query that is gathered record-to-record across a group or an entire report. That is, it allows you to find the total of a specific group ... 7/23/2012 10:35:57 PM
|