Update Query

G

Guest

Hi - I am working with Access 2003 and I want to update one field in one
table to yes - how do I do this?

For example, I have a table listing all of people who hold a brokers license
or insurance license and sometimes both. At one time I would like to update
all of the people who hold an insurance license in that one table - can it be
done?

Thanks.
 
C

Carl Rapson

Anna said:
Hi - I am working with Access 2003 and I want to update one field in one
table to yes - how do I do this?

For example, I have a table listing all of people who hold a brokers
license
or insurance license and sometimes both. At one time I would like to
update
all of the people who hold an insurance license in that one table - can it
be
done?

Thanks.

Is the insurance license field a Yes/No field? If so, this will set every
record to True (Yes):

UPDATE
SET [insurance license]=True;

If it's a text field, this would work instead:

UPDATE
SET [insurance license]="Yes";

To use SQL such as this, create a new query in Design view, Cancel the
dialog for selecting tables, then switch to SQL view. You'll see a blank
form where you can type in and execute SQL statements.

Carl Rapson
 

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