I have a table that has records that already have unique numbers. I'm appending new records in from another table, but I'm trouble with an indexed field that needs to have an unique number, I need to take the max number from a certain record set,(ie. any record that has a sysid of M), that appears in the appended table and increment that number until all the records are appended.