Click here to Skip to main content
15,921,179 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
sir,

Is there any auto increment number coding for auto id number

i got all your answers thank you sir..

pls reply me soon....actuly sir i m very confusing aboutit

thank you


Added as a seperate question

respected sir,
actualy my project definition is its security purposse acutaly their is my form
the fild is AUTO ID its lable and TEXTBOX and their is SAVE,UPDATE,DELETE,EDIT its my
field now in my project databse is store easily but wh n user wants to update him/her
data in that field at that time i add AUTO NUMBER ID in this auto number id the
is disabled but when user save data at that time counter will be start means if i
save my data at that time AUTO NUMBER ID will be generated means save one whole data
than increment 1,2,3,4,after and after when user wants his/her requirment
so..pls help me what is the exactly coding for this
thank you sir
Posted
Updated 14-Mar-11 22:20pm
v4

If you're talking about an auto numbering field in a DataTable then have a look at this: http://msdn.microsoft.com/en-us/library/system.data.datacolumn.autoincrement.aspx[^]. However you have tagged MS-Access so if you want to have an auto numbering field in Access you can define it on an column in Access.
 
Share this answer
 
Comments
OriginalGriff 15-Mar-11 4:21am    
The OP posted a response as a separate question: I am not sure if it was directed at you or the other answerer, so I have added it to the original question, and commented to you both.
check here
[^]
 
Share this answer
 
Hope this[^] might help you.
 
Share this answer
 
Comments
OriginalGriff 15-Mar-11 4:21am    
The OP posted a response as a separate question: I am not sure if it was directed at you or the other answerer, so I have added it to the original question, and commented to you both.

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