GroupSort is your Lot#... and don't try to edit the LotSerial column. If it is going to work at all, just include the Primary Key columns and your UDF. (Hopefully it is just complaining that you are trying to add a row to the table...).

------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
------------------------------