MS Access: How to replace blank (null ) values with 0 for all records?
I guess it has to be done using SQL. I can use Find and Replace to replace 0 with blank, but not the other way around (won't "find" a blank, even if I enter [Ctrl-Spacebar] which inserts a space.
So I guess I need to do SQL where I find null values for MyField, then replace all of them with 0.
Go to the query designer window, switch to SQL mode, and try this:
If you're trying to do this with a query, then here is your answer:
Edit
ISNULL function was used incorrectly - this modified version uses IIF
If you want to replace the actual values in the table, then you'll need to do it this way:
I would change the SQL statement above to be more generic. Using wildcards is never a bad idea when it comes to mass population to avoid nulls.
Try this:
without 'where's and 'if's ...
The following Query also works and you won't need an update query if that's what you'd prefer: