|
![]()
Resetting an AutoNumber field, and starting from different valuesResettingIf you wish to reset an AutoNumber field back to the original starting value, for example you have been entering test data into your application, and wish to clean it up before deploying it, then you need to do the following:
Setting the start numberIf you wish to control the number at which an AutoNumber field starts (and the only good reason that I can think of is that you are deploying the application in various locations that will not be synchronized regularly), then you will need to run some code like this:
You could then call this procedure like: Call sSetAutoNumber("tblCustomer","CustomerID",1000) Which would set the AutoNumber to start at 1000.
Copyright & Disclaimer | |||||||||||||
| Last modified at 06/06/2006 15:01:40 | ||||||||||||||