How to disable Automatic Calculation in MS Access

可紊 提交于 2020-02-08 01:32:32

问题


I have a query with 4 calculated fields , one of them calculate the running sum using DSum

When running this query and go to the last record it is taking some time (that is normal and OK)

But the problem is that MS Access recalculate this field every time I scroll up or down using mouse wheel, and this recalculation taking a very long time that make this query unusable

I think MS Access do this recalculation because it is multi user application so I change it to Exclusive (File > Options > Client Settings > Advanced > Default open mode > Exclusive) , but this not help

So Im looking for something like Excel to disable automatic calculation and calculate what you need and when you need using VBA for MS Access or at least prevent MS Access from recalculate the query every time I scroll up or down.

  • no more than one user will use my database at the same time
  • the query has about 40,000 records

回答1:


As Nick wrote, you can't.

To view the data without recalculation, put it into a report, or use a INSERT INTO or SELECT INTO action query to save it to a temporary table. The latter is especially useful, if you want to do further calculations on the data, or if it is the recordsource of another query.



来源:https://stackoverflow.com/questions/33885520/how-to-disable-automatic-calculation-in-ms-access

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!