Thanks for your response Duncan, but I don't understand it. Do I type
the criteria in exactly as you've written? That's going to test the
value of Account or set it?
Al
> Thanks for your response Duncan, but I don't understand it. Do I type
> the criteria in exactly as you've written? That's going to test the
> value of Account or set it?
>
> Al
When you create your query initially, it's a SELECT query. That means it
only returns records, it doesn't change them.
On the QBE grid, you would add the Account field, and set it's criteria
to 5005.
Go ahead and run it. You should only get those fields whose Account = 5005.
Now, go up to Query->Update Query.
This will change it into such, and will add an additional line to your
QBE grid called "Update To".
Make sure that SubAccount is on your list of fields, and put 0005 in the
Update To grid.
Now when you run the query, it will return all Account=5000 and it will
SET all SubAccount = 005.

Signature
-D
Duncan Bachen
Director of I.T., Ole Hansen and Sons, Inc.