I have a table called tblUserLogin. One of the columns is labeled UserID. Evertime I add a user it numbers them in order (ex. 1, 2, 3). If I delete numbers 2 & 3 and then add another user the user has a UserID of 4, the next number in line. Should it be number 2? Is this a setting in the properties window that needs adjusted? Thanks
I have a table called tblUserLogin. One of the columns is labeled UserID. Evertime
Share
No, it absolutely should not be 2. It’s presumably meant to be a unique identifier. If some other system still knows about user ID 2, then when it asks your system for user 2 you should be able to say that the user doesn’t exist – not give back information about the wrong user.
Reusing identifiers would be a really bad idea, basically. Once an identifier has been allocated to an entity, there should be no way of the same identifier (in the same context) referring to a different entity, nor should there be any way of changing the identifier used for that entity.