DSum runs very slow....is there an alternative method?

silv0920

New Member
Joined
Mar 21, 2015
Messages
10
Hi,

I have a DSum statement in my access query to get a cumulative total at the end of each month by account number. I have over 200k records and it runs very slow. It can run for hours and still not give me any results. Is there an alternative way to get this to run faster or another way to get a running total? I am working in Access 2007.
Here is an example of what my table looks like:
Month/Year Account# Amount Cum Total
01-2015 123 $100 $100
02-2015 123 $200 $300
03-2015 123 $100 $400
01-2015 456 $200 $200
02-2015 456 $100 $300
03-2015 456 $50 $350

Any help will be greatly appreciated.
Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I expected to hear back from you about that, dsum (as Giacomo told me years ago) is much better for reports, not queries. It is impractically slow for so many records. Instead you can write a subquery or better still a summary query of the totals by month, then join that to a query of your current table.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,888
Messages
6,162,623
Members
451,778
Latest member
ragananthony7911

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top