And one more ..... looking at your SQL query, I think you could do it with one SELECT in the INSERT:
INSERT INTO trmt(Address,date,pay)
VALUES(
(
SELECT M.Address, CURRENT_TIMESTAMP, ((M.Land*RM.RLandRate)+(M.House*RM.BuildingRate))
FROM Master AS M,rmnt AS RM
WHERE RM.Cluster = M.Cluster AND M.Address = :Address
)
)
Not sure if that occasionally will give null results if the linke between MASTER and rmnt is not correct, but you could give it a try.