How to update to Null

  • Thread starter Thread starter JA
  • Start date Start date
J

JA

How do you delete - using a delete query - so that it will leave the field
Null? I tried using " " and "", but both leave something there. I don't want
to delete the whole record, just the data in one field.

Thanks!

JA
 
You're right. You want to do an update, not a delete.

In design view, use the "Query Type" button to turn your query into an
update query.

Bring down the field you want to clear and in the "Update To" row, simply
enter the keyword Null.

Unless you want to clear this field for all records, bring down other fields
as needed to specify criteria while leaving the "Update To" row blank.

Just remember that you can not override any validation rules that require
the field to contain data.

Good luck.

Sco
 
UPDATE YourTable
SET YourField = Null

*provided* that Null is allowed for this Field in the Table Design.
 

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

Similar Threads


Back
Top