Hi Pat, the new field will automatically be updated by Dmax.
But the old values of the already filled records should be recalculated, so requery won't do the job.
For instance
Order A
1
2
3 <--value of the new orderline
In an event a user deletes number 1, so my sequence will become
2
3<--value of new orderline
Instead of
1 -->number 2 revalued to number 1
2 <--the new value for eventually inserted orderline
So I would have to use a for next loop in code to recalculate all records 'after' the deleted record. In weekend, I've got time to figure that out as it is a complex but challenging rule also
In general language the event should be this
When :after deletion of an orderline
Condition : all records with a higher orderlinenumber than the deleted line
Action : diminish all orderline numbers higher than the deleted number with 1

Oopppss...just figured out that orderlinenumber is metadata and could be done by adding a running total (better say a running count), I guess Dcount should be able to do the job . I got fixated on this problem because it's imported data, in the old database they decided to use a database field (probably because of performance) while 'a virtual field ' is ok with nowadays technology
