well you could loop through forms.controls and check for the control's name. It wouldnt be very efficient though.... something like this:
VB Code:
Dim ctrl As Control For Each ctrl In Me.Controls 'Examine all the controls here Next
I would say it's better to do it manually though![]()




Reply With Quote