>I'd use:
>
>
for each loButton in thisform.controls
> if upper(loButton.BaseClass) = 'COMMANDBUTTON'
> loButton.Whatever...
> endif
>endfor
In this case loButton refers to the actual control, so if you need its name you can do loButton.Name.
I mean can you give me an example. You said "for each loButton " how would I word this or even know what loButton is? I know what my controls are.....
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."