> InsertLine() is supposed to add a new record at the currently highlighted line and renumber the rest of the lines.
Paul,
You may be having a problem with this being a KEY field. If I have 5 records and I insert before record 3, you may get a conflict when you try to save that record as 3 because 3 already exists. Try inserting the record, but then renumbering from the bottom up. This way 5 becomes 6, 4 becomes 5, 3 becomes 4 and then I can save the new record as 3.
Kind Regards,
Mat