for each loControl in thisform.Controls if pemstatus(m.loControl, 'value', 5) loControl.ResetToDefault('value') endif nextThis would work for only one level hierarchy deep. If you have pageframes or containers with objects, you need to use recursion.