I have an update query that will not update fields that were previously blank. Is it possible to populate these blank fields in the query grid criteria field to "-" and then run my update query?
Well you can update anything... any time any where... given the right statement...
Problem with NULL values is that they never match anything...
ie.
Select * from yourtable where SomeColumn <> "Something"
You might expect that to give you the null values as well... as NULL <> "Something"...
This is not true... this will not return the null values... The only way you can do anything with Null values is in the "special" syntax also NOT used by Adam!!!!
If you want the null values you have to use either:
- IS NULL
- IS NOT NULL
Where the former will return the NULL/Blank fields and the latter the NON-Null/NON-Blank fields....
So...
Select * from yourtable where SomeColumn <> "Something" or SomeColumn IS NULL
Thanks again,
I've just found out my problem is also compounded by the linked excel spreadsheet. It has hidden apostrophies in it, all tags are pre-fixed with ' but the update query does seem to work for all fields that originally had data regardless off the hidden apostrophies.
Do you know how to remove them from inside access? I would rather not have to remove them in excel everytime after I have run the application that outputs my link file.