Ams
2005-01-14 14:41:04 UTC
Hi Everybody,
I am using VFP 6.
This is a general question.
I have a table ('CodeBank'), in my DBC which stores the name of the
tables/views and the last used IDs.
On Adding new record, I generate a new Id and store it in CodeBank also.
Everything is working fine,except in one condition, in Mutli-User environment.
Suppose two users, simultaneously add records, and the IDs created are 017
and 018. The user who has the 018 ID, saves the record, but the user with the
017 Id, doesnt save the record. This causes the ID to miss.
How can I avoid such missing Ids ?
I am using VFP 6.
This is a general question.
I have a table ('CodeBank'), in my DBC which stores the name of the
tables/views and the last used IDs.
On Adding new record, I generate a new Id and store it in CodeBank also.
Everything is working fine,except in one condition, in Mutli-User environment.
Suppose two users, simultaneously add records, and the IDs created are 017
and 018. The user who has the 018 ID, saves the record, but the user with the
017 Id, doesnt save the record. This causes the ID to miss.
How can I avoid such missing Ids ?