>>>>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.
Tim:
Try using a commandgroup and referencing the 'Value' property.
Example: If you have a group with 4 buttons and 'Click' the third button, CommandGroup1.Value = 3
Dan
Dan
St. Petersburg, FL
"I started out with nothing and I still have most of it left"