Carrotsinapod said:
Is there any way to increase a value in an update query? I want to change all
people in year 7 to the year above, e.g. year 8, in an update query, but I
don't know how.
There may be something wrong with your table design since
this kind of operation should not be needed. (It sounds
just like the problem of storing people's ages rather than
their birthdate.)
However, you can do what you asked by using an Update query.
(Be sure to make a backup before doing this so you can
quickly recover from any mistakes.)
UPDATE table
SET yearfield = yearfiueld + 1
Be very careful that you do not run that query twice.
If you really only want to update the yearfield when it was
7, then add a where clause:
WHERE yearfield = 7