"dmax" new year

A

adam

I have a calculated field behaving like an autonumber,
where the field value is increasing by one in every new
record, by using "Dmax" function.

Problem is when the year changes this number should start
from zero again, but the old values should not change
also. The situation looks complex for me, so any ideas or
advice would be highly apreciated.

Regards.
 
M

Marshall Barton

adam said:
I have a calculated field behaving like an autonumber,
where the field value is increasing by one in every new
record, by using "Dmax" function.

Problem is when the year changes this number should start
from zero again, but the old values should not change
also. The situation looks complex for me, so any ideas or
advice would be highly apreciated.


It would've helped to see the code you're using, but I think
you can change it to something like:

newnum = NZ(DMax( . . . ), 0) + 1
 

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