Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have customer detail in form with in project id details but i generated 999 values only.(ex Cust001,Cust002...Cust999).Customer asked how to use max of 100000 users for example(Cust000001  to Cust99999) 
please help me how to create it.
Posted
Comments
Sinisa Hajnal 9-Mar-15 4:57am    
You shouldn't have added Cust in front of the number and you wouldn't have the problem. Add the field CustomerId that will be autoincremented and if you need the code, concatenate Cust + RIGHT('00000000' + id, your-fixed-needed-length) and you'll get (for fixed length 3) Cust001-Cust999. Expand as needed.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900