User Derek Wright on my YouTube channel brought up a great question:
Thank for this it has really helped me with an equipment inspection database, one question though is if I start with zero records it does not work but if I already have say a single dummy record in with the number 1 it then works fine. Is there a way around this anomaly?
The solution:
In the BeforeInsert event, wrap the DMax function inside Nz: