Today we’ll see How to Generate Customer Id in VB.Net. Follow the steps –

1. To generate customer id in vb.net following code is used.

2. While creating customer Table in database, keep the customer id data type Int because it will sequentially stored the data, another data type will generate the error.

3. Create function for customer id.

customer id

4. Output –

customer id 1