It looks like you're new here. Sign in or register to get started.
REPEAT Rec.Field1 := ... Rec.Field2 := ... Rec.INSERT(TRUE); UNTIL ...
IF NOT Rec.INSERT(TRUE) THEN ... (put info in a lock)
Comments
In place of making a unconditionnal Insert, make something like :
Hope that help.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
IF ((iCtr MOD 100) = 0) THEN
COMMIT;
be smart before being a clever.