Something like this, in a button? on mouseUp repeat with y = 1 to the number of cds repeat with x = 1 to the number of fields of cd y set the lockText of fld x of cd y to yourCondition end repeat end repeat end mouseUp