J
John Ortt
I have a database in access which is incredibly slow to run. Essentially it
downoads my bank statements from an online bank and adds them all up by date
to give me my balance on any given day. As I don't have the transactions
since I joined the bank there is one "Balance Correction" at the start but
aside from that everything is working.....It is just very slow.
Can anybody think of a more graceful way of doing the following?
SELECT [Qata].TransDate, Sum([Qata].[TransAmount]*-1) AS
Amount, -1*(SELECT SUM([TransAmount]) FROM [Qata] as [Qata_1] WHERE
[Qata_1].[TransDate] <= [Qata].[TransDate] and
[Qata_1].[Account]=[Qata].[Account]) AS Balance, [Qata].Account
FROM [Qata]
GROUP BY [Qata].TransDate, [Qata].Account;
Thanks in Advance,
John
downoads my bank statements from an online bank and adds them all up by date
to give me my balance on any given day. As I don't have the transactions
since I joined the bank there is one "Balance Correction" at the start but
aside from that everything is working.....It is just very slow.
Can anybody think of a more graceful way of doing the following?
SELECT [Qata].TransDate, Sum([Qata].[TransAmount]*-1) AS
Amount, -1*(SELECT SUM([TransAmount]) FROM [Qata] as [Qata_1] WHERE
[Qata_1].[TransDate] <= [Qata].[TransDate] and
[Qata_1].[Account]=[Qata].[Account]) AS Balance, [Qata].Account
FROM [Qata]
GROUP BY [Qata].TransDate, [Qata].Account;
Thanks in Advance,
John