Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove nulls? 2

Status
Not open for further replies.

tlove161

Technical User
Feb 5, 2004
42
0
0
US
I received a table with some nulls in many fields. I need to change all the nulls in the table to zero. Is there a way to accomplish this with a query? I tried to use the find and replace, but it will not search for nulls. Thanks.
 
you could create an update query. in criteria section enter "is null" and in the "update to" section type "0".
 
UPDATE yourTable
SET yourField = 0
WHERE yourField Is Null

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks to both of you. An update query did it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top