Deleting all values of a field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
Is it possible to create a macro which deletes the values of a certain field
from all records of a certain table (all records)?
The idea is, at a certain time, to click in a button and all the values
entered in a certain field in a table will be deleted and became empty.
Thanks in advance.
 
acores said:
Hello.
Is it possible to create a macro which deletes the values of a certain
field
from all records of a certain table (all records)?
The idea is, at a certain time, to click in a button and all the values
entered in a certain field in a table will be deleted and became empty.
Thanks in advance.

An update query will do it.

Tom Lake
 
The SQL should be something like this:

UPDATE NameOfTable SET NameOfTable.NameOfField= Null;

Ed Metcalfe
 

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

Back
Top