I tried using the delivered function GetNextNumber and it's siblings. These seemed to work some of the time, but break if I deleted a row.
My solution:
/* In the rowinit event for the field we want to autoincrement. Set the field property to display only. */
If None(MY_REC.MY_ID) Then
MY_REC.MY_ID = GetRowset().ActiveRowCount
End-If;
From my testing, this has worked flawlessly.
No comments:
Post a Comment