Hii guys,
For example: Here ,My column is sr.no,and this sr.no is a primary key .I write this logic,but I am getting output in sr no start with 0.
I want sr .no starts with 1.
Is there is any way to do this.
Hi,
You can set field property as per below,
AutoIncrement=true;
learn.microsoft.com/.../devenv-autoincrement-property
No. Actually I want write a logic for sr no gets automatic.
We don't want autoincrement property.
My result is come, but it starts with 0.
I want number starts with 1.
Try below code
Thank you .It works.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sumit Singh 2,163
OussamaSabbouh 1,908
YUN ZHU 1,878 Super User 2025 Season 2