In general it is very bad to tie other business logic to the value of autonumber fields. The autonumber fields are unique to the application, but not guaranteed to remain the same forever... like through export/import or DB compact operations.
You should develop your own mechanism / code for...