MS Access Format() Function
Example
Format the "Price" column to Currency:
SELECT Format(Price, "Currency") AS FormattedPrice
FROM Products;
Try it Yourself »
Definition and Usage
The Format() function formats a value with the specified format.
Syntax
Format(value, format)
Parameter Values
| Parameter | Description | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| value | Required. The string to format | ||||||||||||||||||||||||||||||||||
| format | Optional. The format to to use.
|
Technical Details
| Works in: | From Access 2000 |
|---|