Fix #Error Values in a Microsoft Access LEFT JOIN
Question details
Resolve #Error values in calculated currency fields returned by an 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.
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.
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.
In the Access Navigation Pane, right-click the LEFT JOIN query and select Design View, then switch to SQL View.
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.
Click Run and check that rows without matching right-side records show zero in the cost columns.

Inspect currency conversions in supporting queries
Use this approach if the joined query still shows #Error after Null values are handled.
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.

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.




