Subject Re: [IBO] Generators and row selections
Author Svein Erling Tysvær
Your trigger should be:

CREATE TRIGGER "SET_CUST_ID" FOR "CUSTOMERS"
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
IF (NEW.CUST_ID IS NULL) THEN
NEW.CUST_ID = GEN_ID(CUST_ID_GEN, 1);
END

HTH,
Set