
August 3rd, 2005, 11:12 AM
|
|
Contributing User
|
|
Join Date: Sep 2004
Posts: 632
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
|
|
|
Well Rishyraj, I hate to be the one to give you some bad news, but you won't be able to do what you want. As you can see 7800008 is less than 9800007 so you can never make the autoincrement start from a number less than the current max number in the table. This is exactly the reason autoincrement should never be used for anything except to index tables by in relationalship databases.
What I would recommend if you can change the table design, is to change the current autoincrement field to a number, add a new field that is autoincrement and make this the primary key field. Then you can make the loan ID number any number you wish. You can then use the DLast function to find the last number in this field and add 1 to it to get the next number in sequence.
lwells
|