This example checks the EditMode property of a Recordset object and completes the update if the AddNew method has been invoked or the object is being edited.
switch (rstTarget.GetEditMode())
{
case dbEditAdd:
case dbEditInProgress:
rstTarget.Update;
return -1; //True
break;
default :
return 0; //False
break;
}