• Thanks but when I try this it returns 'mutipart identifier MyCTE.RetainedVariable could not be bound'?