... calculate and put the number in the buffer, then save the full record, and unlock the file. 3). MY PREFERRED METHOD: Your goal is to have unique, sequential, numbers. I have a "counters" file. When I want to add a record, I open the file, get the proper value ( there are fields for each ...