Acces data from previous entry

Acces data from previous entry

I have field which is formula. And the formula used the data from the last entry. How or what is the syntax for accessing the last entry.
The formula is:
balance = (previous balance from the last entry) - amount