Others

Replace Null Values with Zero in Access 365

Khadija KhanKhadija Khan Nov 18, 2026 869 views

Question details

Replace Null or blank values with zero when appending query results to an Access table.

How to Replace Null Values with Zero in Access 365
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.
Before you start

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.

Solution 1Recommended

Update Existing Null Values in a Numeric Field

Use an update query to set existing Null values to zero without changing populated records.

1
Create a query

In Access, select Create > Query Design, add the affected table, and close the Show Table dialog if it appears.

2
Choose the field

Double-click the numeric field containing Null values to add it to the design grid.

3
Set the update

On the Query Design tab, select Update. In the field's Criteria row, enter Is Null; in its Update To row, enter 0.

4
Review and run

Select View > Datasheet View to check the matching records, then return to Design View and select Run. Confirm the update when prompted.

Update Existing Null Values in a Numeric Field
Defaults and appended values: A table default does not necessarily replace an explicit Null supplied by an append query. Use the append-query solution to handle incoming Nulls.
Free Microsoft Office alternative

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.

Review and edit spreadsheet data in WPS SpreadsheetsOpen and save Microsoft Excel formats such as XLSXUse a familiar interface for everyday document workMove compatible Office files without a complex migration
microsoft office alternative - wps office

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.