Is it possible to use running range in access formula like we do in excel
Example:
row 2, max(a$2:a2)
row 3, max(a$2:a3)
row 4, max(a$2:a4) and so on...
That would be done with a report as stated. Or in Excel if you like. It is not really something you would do in a query (it is feasible if you have a key that you can use for ordering and filtering , but very inefficient SQL).
I probably shouldn't overstate the inefficiency - it would probably bad for large tables (in excess of a hundred thousand records) and probably not too bad for small tables (less than 10000 rows). Not really sure about the in between size.
This is what is called a correlated query which mean the engine has to calculate a result for every row because of the type of link created here between the inner query and the outer query (in this case, specifically, there is a new TransDate criteria for each row, and a query for the max on the qty up to that TransDate).
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.