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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I find and replace null values in Access? 2

Status
Not open for further replies.

Joeclueless

Technical User
Jan 30, 2002
116
US
I have collumns that have null values. I want to be able to replace these blank cells with a standard string of text.
How might I do this? Thanks again!

Joe
 
To give your blank fields a value write an update query like this:

UPDATE MyTable SET MyTable.MyField = "xyz"
WHERE MyTable.MyField Is Null;

If you want to avoid blanks in the future try setting a default value for the field(s) in the table design view. Good Luck,
Mike
 
Thanks Mike!

Appreciate the info! Thanks again!

Joe
 
The other option, if you want to keep the values as Null in your tables, is to output them as

Nz(Fieldname,"Value instead of Null")

For example
Nz([Gaskets Sold],0)
Nz([Age],"no age given")
 
I'm trying the update query and I'm getting the error of "Not enough memory or disk space to complete...yada yada..."

I'm not sure why? I have plenty of disc space (over 1.5 GB) and 256 Mhz of ram??

Any Ideas?? Thanks again!

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top