Hello,
I want to create a function in VBA to display the value of the previous record of a field (except when it is the first record, offcourse). How can I do this so the function can be used in a query (via expression builder) and doesn't take too long to calculate (so don't let the function run to the entire dataset for each record)?
An example might make it clear what I mean:
Query1
Field1 Expression (function to be created)
Thanks in advance
I want to create a function in VBA to display the value of the previous record of a field (except when it is the first record, offcourse). How can I do this so the function can be used in a query (via expression builder) and doesn't take too long to calculate (so don't let the function run to the entire dataset for each record)?
An example might make it clear what I mean:
Query1
Field1 Expression (function to be created)
Code:
5 0
6 5
9 6
10 9
4 10
Thanks in advance