>You need > ><SQLSTATE name="23503"> > <DESCRIPTION>ERR_CONSTRAINT_UNIQUE_VIOLATION</DESCRIPTION> > <MESSAGE>Attempt to insert duplicate key row in object "%S" >with unique index "%S".</MESSAGE> ></SQLSTATE> > >Error code is 0x23503 > > >In RB code this is (if I not mistake) > > err = &h23503 > Got it. Thanks, Jon