Hey Kenneth,
>I want to set the focus back to the previous active control
>when a button is pushed.
>
>How can I know which is the previous active control?
You might want to try RETURN(-1) which will move the focus back 1 control in the tab order.
Hth,
Jim Duffy
Microsoft MVP
INETA Speaker
TakeNote TechnologiesDeveloper's Choice Award Winner for Best Training Company
Specializing in VB.NET, ASP.NET, VFP, and SQL Server Training and Development