update a field in all records

T

Troy

I have a table that has a checkbox field. Some of the records are checked
(yes) and some are not(no). I would like to create a query to uncheck all
of them. I would just go down the records and do it manually, but that
would take all day.

I don't know where to start as far as creating an update query. Thanks for
any input.
 
G

Guest

Open a new query window, switch it to SQL view, and paste in the following
line:
UPDATE [NameOfYourTable] SET [NameOfYesNoField] = 0
 
R

Rick Brandt

Troy said:
I have a table that has a checkbox field. Some of the records are checked
(yes) and some are not(no). I would like to create a query to uncheck all
of them. I would just go down the records and do it manually, but that
would take all day.

I don't know where to start as far as creating an update query. Thanks for
any input.

Put this in the SQL view of a new query then switch to design view.

UPDATE [TableName]
SET [TableName]![FieldName] = 0;
 

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