Share this page:

MS Access: Last Function

Learn how to use the Access Last function with syntax and examples.

Description

The Microsoft Access Last function returns the last value from the result set of a query.

Syntax

The syntax for the Microsoft Access Last function is:

Last ( expression )

Parameters or Arguments

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.

Applies To

The Last function can be used in the following versions of Microsoft Access:

  • Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000

Example

Last (SupplierID)

In this example, the Last function would return the last SupplierID value.

Example (in SQL/Queries)

You can use the Last function in a query in Microsoft Access.

Microsoft Access