Need to replace empty fields with dash

J

Jim

I've got a fairly large table with a large number of fields that are empty.
I need to replace the empty fields with a dash. Is there an easy way to do
this? Find/replace doesn't seem to work with spaces.

Thanks,

Jim
 
D

Dirk Goldgar

Jim said:
I've got a fairly large table with a large number of fields that are
empty. I need to replace the empty fields with a dash. Is there an
easy way to do this? Find/replace doesn't seem to work with spaces.

Interesting: you can use the Find dialog to find them (by specifying
Null in the "Find What" box), but you can't use the Replace dialog to
replace them.

I'd run a series of update queries for this, one for each field. Each
query would have SQL modeled along these lines:

UPDATE TableName SET FieldName = '-'
WHERE FieldName Is Null;

You'd replace "TableName" and "FieldName" with the names of your table
and field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top