How to Show Two Decimal Places in an Access UNION Query
Question details
The user needs to restrict the output of calculated values in an Access UNION query to display exactly two decimal places.

- 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.
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.
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.
Right-click your UNION query in the Navigation Pane and select 'SQL View' to edit the raw query text.
Locate the calculated field expression and wrap it in the Round function specifying 2 decimal places. For example: `Round([YourCalculatedField], 2)`.
Ensure that the `Round(expression, 2)` syntax is applied consistently across all the individual SELECT statements that make up your UNION query.

Format the Output in a Form or Report
Use this method if you need to keep the full calculation precision (up to ten decimal places) intact in the background but want to display only two decimals.
Wrap the UNION Query in an Outer Subquery
Use this approach if editing multiple complex SELECT statements in a large UNION query is too cumbersome.
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. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Import Data: Open WPS Spreadsheet and easily import exported database queries or CSV files.
- 3. Format Decimals: Select your data columns, right-click to choose 'Format Cells', and set exactly two decimal places effortlessly.

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.




