This MSAccess tutorial explains how to use the Access Last function with syntax and examples.
The Microsoft Access Last function returns the last value from the result set of a query.
The syntax for the Last function in MS Access is:
Last ( expression )
expression is the value that you'd like to return from the result set. The Last function only returns the last value in the result set.
The Last function can be used in the following versions of Microsoft Access:
Let's look at how to use the Last function in MS Access:
In this example, the Last function would return the last SupplierID value.
You can use the Last function in a query in Microsoft Access.
In this query, we have used the Last function as follows:
This query will return the last SupplierID and display the results in a column called Expr1. You can replace Expr1 with a column name that is more meaningful.
The results would now be displayed in a column called LastSupplier.
(scroll to see more)