Dear Robby
I think you are talking about Auto Number in Access. This is good but not enough. Im trying to Insert 1000 id numbers at once. Currently, Im thinking about making a loop with an insert statement. I will let you know what happens.
i dont know exactly why you need 1000 rows with the id fierlds
filled but data absent. i think you are using the id firled as a primary key or not the at least unique as there is no point having 2 students with the same id.
if you have problem tracking what is the id of the last inserted student than you can let access manage it by using autoincrement
as robby pointed out.
Else you can have another table in the same database that has one row only and it stores the last inserted number. Every time you insert a record you incrementy this number before the actual insertion.
in this way even if the number is updated but entry fails then too you will have unique ids.
although there is a chance that u may some nos in between
This is what happened. I was able to insert 1000 id by using a loop. But Im considering what Robby and hemenkap seriously. So, Im no gonna use this loop.
Thank you all.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.