Hi, I used this method and it worked for me. I hope it helps you.
Automatically displaying unique ID number