Replace Null Values with Zero in Access 365
Question details
Replace Null or blank values with zero when appending query results to an Access table.

- Product
- Microsoft Access 365
- Device & OS
- not provided
- Scenario
- Records are appended from a query to a table whose fields have default values.
- Observed behavior
- Appended fields contain Null or blank values instead of the expected zero.
Check the affected field's data type in Table Design and determine whether the values are true Nulls or empty strings. A numeric field can contain Null, while a text field can also contain an empty string.
Update Existing Null Values in a Numeric Field
Use an update query to set existing Null values to zero without changing populated records.
In Access, select Create > Query Design, add the affected table, and close the Show Table dialog if it appears.
Double-click the numeric field containing Null values to add it to the design grid.
On the Query Design tab, select Update. In the field's Criteria row, enter Is Null; in its Update To row, enter 0.
Select View > Datasheet View to check the matching records, then return to Design View and select Run. Confirm the update when prompted.

Convert Nulls to Zero in the Append Query
Use Nz in the source expression so future appended records receive zero instead of Null.
Replace Empty Strings in a Text Field
Use a separate update query when a text field contains empty strings rather than true Nulls.
Work with Spreadsheet Data in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move spreadsheet and document work. It does not replace Access or run Access update queries.

Frequently Asked Questions
Why didn't the table default replace a Null from my append query?
A default may be used when a value is not supplied, but it does not necessarily override an explicit Null from a query. In the append query's Field row, use Nz([SourceField],0) for the numeric source field.
How do I find Null values in an Access query?
Open a query in Design View, add the field, and enter Is Null in its Criteria row. Switch to Datasheet View to see matching records.
Are Null values and empty strings the same in Access?
No. Null represents an absent or unknown value, while an empty string is a text value containing no characters. Use Is Null to find Nulls and "" to find empty strings in a text field.
Will changing the append query fix records already in the table?
No. The changed expression affects records appended when the query runs again. Use an update query with Is Null as the criterion and 0 in the Update To row to correct existing numeric values.




