... with a field InvoiceNumber, when the user add a record, the invoice number must be the last one + 1 In a SQL network environment, how can i be shure that dont have 2 times the same number . With DBF, when i want to do the same, i open an other file (LOCK.DBF) in EXCLUSIVE MODE and. if neterr() ...