Follow us:
access functions

MS Access: First Function

This MSAccess tutorial explains how to use the Access First function with syntax and examples.

Description

The Microsoft Access First function returns the first value from the result set of a query.

Syntax

The syntax for the First function in MS Access is:

First ( expression )

Parameters or Arguments

expression
Value that you'd like to return from the result set. The First function only returns the first value in the result set.

Applies To

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

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

Example

Let's look at how to use the First function in MS Access:

First (SupplierID)

In this example, the First function would return the first SupplierID value.

Example in SQL/Queries

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

For example:

Microsoft Access

In this query, we have used the First function as follows:

Expr1: First([SupplierID])

This query will return the first SupplierID and display the results in a column called Expr1. You can replace Expr1 with a column name that is more meaningful.

For example:

FirstSupplier: First([SupplierID])

The results would now be displayed in a column called User.

Share: