Patrick,
I employed this approach on my form, as I was having the same problem with duplicate file numbers when using the max(ID)+1 formula. I am not using a browser-enabled form. We were needing our "file numbers" to start at 8000, and after our multiple test form submissions before our form library went live, I ended up using ...