Hi. I am doing an application which is using auto-generated reference number by counting records in database. The reference number is generated by increase the maxrecords of database by 1. Here is the problem when multiuser submit their form right at the same second, they will get the same reference number! It is definitely not allowed by the application. I have an idea which is by delaying the system when the form submitted, but I don&#039t know how to write codes in ASP. May someone help me or share his/her ideas with me?<BR> Thank you very much.