WHEN variable xxx not found in record