Share this page:

MS Access: Max Function

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

Description

The Microsoft Access Max function returns the maximum value in a set of numeric values in a select query.

Syntax

The syntax for the Microsoft Access Max function is:

Max( expression )

Parameters or Arguments

expression is a numeric value. It can be a field or a formula that evaluates to a numeric expression.

Applies To

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

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

Example (in SQL/Queries)

You can use the Max function in a query by clicking on the Totals button in the toolbar (This is the button with the summation symbol). The Max function is used in conjunction with the Group By clause.

Microsoft Access

This query would return the maximum UnitsInStock for each ProductName.