UPDATE TableName SET TableName.BooleanFieldCompleted = True
WHERE (([TableName]![Field1]="Done"));
Change the names to what they really are in your application
I assume the BooleanFieldCompleted is a True/False (not text) field. If not
(it is text) then change to
UPDATE TableName SET TableName.BooleanFieldCompleted = "True"
WHERE (([TableName]![Field1]="Done"));
To some, I didnt make clear: I want to change a group of values
permanently in the table. This will be a one-time maintenance task.
Going forward, this task will not be performed.- Hide quoted text -
- Show quoted text -
A bit of history: this is a database containing tables not well
normalized and they are now realizing it with reporting and archiving
issues. I need to keep current data and then normalize these tables
in phases. FIELD1 is actually called: status. Lo and behold, they
cannot capture entries that could have been in a status other than
"Done" (ie "Declined", "Rejected"). This means that questions such
as, "how many transactions were rejected?" can be answered now and
their last active status recorded. In the past, the status would need
to be changed to "Done" to separate it out from the active records
currently viewed but their last status would be lost. Make sense?
In this exercise, my intent is to take the "Done" entry in one FIELD1
and convert it to a TRUE value in the BooleanFieldCompleted field.
That will mark all past transactions that were closed. Then, I will
remove the "Done" choice from the list box users see when changing the
value in FIELD1. Going forward, users will have to manually mark the
record using the BooleanFieldCompleted entry when it is completed. I
will need to do something like this exercise on other fields with the
same reporting issues. I hate cleaning up: whether it be a house or a
database!