dpatfield66
Well-known member
- Joined
- Apr 6, 2006
- Messages
- 136
- Programming Experience
- 5-10
If I have multiple fields in a record (row) that are NULL, let's say, and I want to update them to be 0 instead, how would I do this? Does anyone know?
I don't want to use multiple update queries, just one.
ONE query that says, hey...if the field entry is NULL, make it 0.
Or if the Date Field is 1/1/1900, make it NULL.
So, if I have 5 Null fields...
or 5 Date fields with 1/1/1900...
I want to update each field above to whatever (0 in the first case, Null in the second)
These don't have to be the same query...I can have one query for the NULL to 0 update, and one query for the 1/1/1900 to NULL update.
But I don't want 5 queries for each NULL field
Or 5 different queries for each date with 1/1/1900
I KNOW this can be done, anyone???
I don't want to use multiple update queries, just one.
ONE query that says, hey...if the field entry is NULL, make it 0.
Or if the Date Field is 1/1/1900, make it NULL.
So, if I have 5 Null fields...
or 5 Date fields with 1/1/1900...
I want to update each field above to whatever (0 in the first case, Null in the second)
These don't have to be the same query...I can have one query for the NULL to 0 update, and one query for the 1/1/1900 to NULL update.
But I don't want 5 queries for each NULL field
Or 5 different queries for each date with 1/1/1900
I KNOW this can be done, anyone???