Formatting Issues

How to Show Two Decimal Places in an Access UNION Query

Steven ParkerSteven Parker Nov 2, 2026 869 views

Question details

The user needs to restrict the output of calculated values in an Access UNION query to display exactly two decimal places.

How to Show Two Decimal Places in an Access UNION Query
Product
Microsoft Access
Device & OS
not provided
Scenario
Combining calculated values from several Access queries into a single dataset using a UNION query.
Observed behavior
The resulting calculated values display up to ten decimal places instead of the expected two decimal places.
Before you start

Determine whether you need to preserve the exact mathematical precision for further calculations, or if you simply need to restrict the displayed decimal places for visual presentation.

Solution 1Recommended

Use the Round() Function in SELECT Statements

This is the most direct method when you want to actually round the underlying data to two decimal places in the query results.

Applying the Round function directly to the expression within each SELECT statement ensures the UNION query outputs a consistent numeric structure with exactly two decimal places.

1
Open your query in SQL View

Right-click your UNION query in the Navigation Pane and select 'SQL View' to edit the raw query text.

2
Apply the Round function

Locate the calculated field expression and wrap it in the Round function specifying 2 decimal places. For example: `Round([YourCalculatedField], 2)`.

3
Update all SELECT statements

Ensure that the `Round(expression, 2)` syntax is applied consistently across all the individual SELECT statements that make up your UNION query.

Use the Round() Function in SELECT Statements
Avoid using the Format() function for calculations: While the Format() function can display two decimal places, it converts your numeric result into a text string, which can cause errors if you need to perform further sorting or arithmetic operations on the data.
Free Microsoft Office alternative

Discover WPS Office for Your Spreadsheet and Data Needs

While Microsoft Access handles complex relational databases, WPS Spreadsheet is a highly capable, lightweight tool for managing, calculating, and formatting large datasets with excellent Microsoft Excel compatibility. It provides a free and familiar environment for everyday data tasks.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
  2. 2. Import Data: Open WPS Spreadsheet and easily import exported database queries or CSV files.
  3. 3. Format Decimals: Select your data columns, right-click to choose 'Format Cells', and set exactly two decimal places effortlessly.
Fully compatible with Microsoft Office formats including XLSX, DOCX, and PPTX.Easily control decimal places and data precision using intuitive spreadsheet cell formatting.Lightweight software with a familiar, easy-to-use interface.Completely free alternative for everyday data analysis, calculation, and reporting.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my UNION query lose standard column formatting properties?

A UNION query combines raw data from multiple tables or queries into a brand new dataset. During this process, Access strips away the individual design-level column properties (like format and decimal places) applied to the source tables.

Can I use the Format() function instead of Round() in my query?

You can, but it is generally discouraged if the data is numeric. The Format() function converts numbers into text strings. This means the values might sort alphabetically instead of numerically (e.g., '10.00' coming before '2.00') and will fail in subsequent mathematical calculations.

How do I keep the exact numeric precision but just hide the extra decimals?

To preserve exact mathematical precision, avoid using the Round() function in the query. Instead, use the query as a record source for a Form or Report, and change the 'Format' and 'Decimal Places' properties of the specific text box control to 2 in Design View.