How to Primary Key begin 1 after "delete all data".

Tera, the trick is that the table must be de-populated for the reset to occur. Otherwise, as Pat pointed out, it just resets to the next available number after the highest extant number currently in the table.
 
......................... ? Sub ResetTableNumber(pstrTable As String, pstrID As String)
What is code in the blank dot place...
can you attached a db please
I have no idea as to what you are talking about.?
I cannot see any text before the sub? I even copied it using the clipboard button and it displays to me as it does in the thread.?

If you have it for some strange reason just delete everything before the sub. ?
 

Users who are viewing this thread

Back
Top Bottom