>>>Is there a way to determine which cmd button was selected on a form?
>>
>>=messagebox(thisform.activecontrol.name)
>
>I want to determine which cmd button was LAST selected.
Timothy, 'selected' for cmdButton means that click or gotfocus (depending what you mean here) event was fired. So, add some code in these event to reset some form property to value reflecting cmd number.
Edward Pikman
Independent Consultant