Format Function (Access custom web app)

Office 2013 and later

Returns a value formatted according to a specified pattern.

Last modified: March 09, 2015

Applies to: Access 2013 | Access 2016

Note Note

The cloud storage feature described in this article is no longer supported in Office 2013 and Office 2016 and may result in the following error:

Sorry, we’re having server problems, so we can’t add <service> right now. Please try again later.

For cloud storage for Office Online, Office for iOS, and Office for Android, you can look into our Office Cloud Storage Partner Program.

Format (Expression, Format)

The Format function contains the following arguments.

Argument name

Description

Expression

Expression of a supported data type to format.

Format

A format pattern. The format argument must contain a valid format string, either as a standard format string (for example, "C" or "D"), or as a pattern of custom characters for dates and numeric values (for example, "MMMM dd, yyyy (dddd)"). For more information, see Remarks.

For the Format parameter, you can pass strings that match any of the following patterns:

You cannot use the Format function in the following areas of Access 2013 web apps:

  • Calculated columns at the table level

  • UI macros

  • Expressions in views (for example, in forms)

Show: