Hi all,
I have a query where I need to record a running total. My current code is below
I need a running total per tblBrokerages.BDM_Name. I've looked online for ways to achieve this, but each method I've found involves having a unique key, which my query doesn't have.
Is there another way to produce a running total column?
Thanks in advance
I have a query where I need to record a running total. My current code is below
Code:
SELECT tblBrokerages.BDM_Name, Format([DateTPIAgreementSigned],"mmm-yy") AS xMonth, Count(tblBrokerages.DateTPIAgreementSigned) AS Original
FROM tblBrokerages
GROUP BY tblBrokerages.BDM_Name, Format([DateTPIAgreementSigned],"mmm-yy"), Format([DateTPIAgreementSigned],"yyyy-mm")
HAVING (((Count(tblBrokerages.DateTPIAgreementSigned))>0))
ORDER BY tblBrokerages.BDM_Name, Format([DateTPIAgreementSigned],"yyyy-mm");
I need a running total per tblBrokerages.BDM_Name. I've looked online for ways to achieve this, but each method I've found involves having a unique key, which my query doesn't have.
Is there another way to produce a running total column?
Thanks in advance