Hi
I have a table with one PK that is set at code with the concatenation of 2 fields. I make the concatenation at Row_inserting event:
function Row_Inserting($rsold, &$rsnew) {
$rsnew['CODE']=trim($rsnew['FIELD1'] . " " . $rsnew['FIELD2']);
It works when i add a new record but if i use de "copy" button, even i change the field1 and field2 (to create a new PK and new record) it sends me an error "duplicate primary key".
So, it works ok to new record but doesn't work for copy to a new record...
Regards