sql - how to make the new Autonumber in Access follow the last Autonumber -
i have little school project create exam of 30 questions, display these questions out of database table includes 70 questions (which created in advance). use array of random unique integers between 1 , maxid (in questions table) take these questions using id(autonumber, primary key) , display them. teacher told me create page admin can add question did.
the problem starts when add question(id==71) , remove question , add one(id==72) if last id 72(for example) , before 70, if number 71 included in array of random unique integers gonna make problem cause there's no row includes 71 in access table.
my question is: can make id's in autonumber column +1 last id in table?
i know it's bit long i'm bothered this, if unclear, please tell me can make clear.
no, autonumber +1 of last used. way accomplish assign own value id, you'll still have similar issue if delete record in middle.
Comments
Post a Comment