Hi,
I want to Increment id when i insert a records CNIP as starting
ex:
CNIP 1001
CNIP 1002
CNIP 1003.............................like This Please help me urgent
Hi,
I want to Increment id when i insert a records CNIP as starting
ex:
CNIP 1001
CNIP 1002
CNIP 1003.............................like This Please help me urgent
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijay YadavPosted Mar 17, 2011, 9:30 AM
Guest UserPosted Mar 17, 2011, 9:27 AM
int identityValue = (retrieve field value from resultset);
string fullId = "CNIP" + identityValue;
Vijay YadavPosted Mar 17, 2011, 9:22 AM
Guest UserPosted Mar 17, 2011, 9:16 AM
Vijay YadavPosted Mar 17, 2011, 9:15 AM
As far as i have implement this type of format, i would suggest do this through coding i.e. increment the autonum field by your logic.:)