winforms - Adding a record to access database from C# -


i have form windows program in c# adds record database , can remove it.

in database have id (which auto number), if delete record , if want add record instead, auto number increases , doesn't add missing numbers.

i mean if have 9 records in access database , want remove record, 8, when add new record, 10 instead of 9. picture:

enter image description here

is there solution that?

if it's auto number, database generate number greater last 1 used - how relational databases supposed work. why there solution this? imagine deleting 5, want then, have auto number create next record 5? if displaying id in c# app - bad idea - change other value can control wish.

however trying achieve not make sense.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -