Others

Fix #Error Values in a Microsoft Access LEFT JOIN

Anum MushtaqAnum Mushtaq Nov 25, 2026 869 views

Question details

Resolve #Error values in calculated currency fields returned by an Access LEFT JOIN.

Fix #Error Values in a Microsoft Access LEFT JOIN
Product
Microsoft Access
Device & OS
not provided
Scenario
A query joins device cost queries by Incident ID and needs missing right-side costs to appear as zero.
Observed behavior
The joined query displays #Error in calculated cost fields, potentially because of incompatible values or errors in supporting queries.
Before you start

Identify the supporting queries and cost fields used in the LEFT JOIN. Check that the joined Incident ID fields have compatible data types and that cost values can be converted to Currency.

Solution 1Recommended

Replace missing joined costs with zero

Use Nz when a missing right-side record produces a Null cost, and apply CCur only to values that can be converted to Currency.

1
Open the query

In the Access Navigation Pane, right-click the LEFT JOIN query and select Design View, then switch to SQL View.

2
Update the cost expressions

In the SELECT clause, replace the right-side cost expressions with expressions such as CCur(Nz([Qry_device2].[cost2],0)) AS cost2 and CCur(Nz([Qry_device3].[cost3],0)) AS cost3.

3
Run the query

Click Run and check that rows without matching right-side records show zero in the cost columns.

Replace missing joined costs with zero
Null is not the only cause: Nz replaces Null values; it does not repair an existing error or make invalid or out-of-range values convertible to Currency.
Free Microsoft Office alternative

Review exported cost data with WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility, making it easy to move exported cost data into a spreadsheet. Use Microsoft Access to fix and run the LEFT JOIN; WPS does not run Access database queries.

Review exported cost columns and identify unusual values in WPS SpreadsheetOpen and edit Microsoft Excel XLSX filesWork in a familiar spreadsheet interfaceUse a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does a LEFT JOIN return Null for a cost?

A LEFT JOIN retains rows from the left query even when there is no matching right-side row. In SQL View, use Nz([Qry_device2].[cost2],0) to display zero for a missing cost.

Why does #Error remain after I add Nz?

Nz handles Null values, not errors already produced by a supporting query or values that CCur cannot convert. Run each supporting query separately and inspect its calculated fields in Design View.

Should I always use CCur around Nz?

Use CCur when a Currency result is appropriate and the non-Null values are valid and within the Currency range. An unnecessary conversion in an earlier query can itself cause an error.

Is there a better way to store cost1, cost2, and cost3?

Repeated cost fields can indicate a normalization issue. Consider storing costs as separate related records with an incident identifier and a device or cost type, then query those records as needed.