I use automatic insert, which calls an SQL stored procedure. This stored procedure checks if the newly inserted record already exists, if it does, it doesn't insert the record, and returns a NULL for one of the datafields. My question is, how do I capture the SQL result of this NULL datafield so I can display a message to the user?