Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return focus to a form

Status
Not open for further replies.

clifftech

ISP
Nov 9, 2001
111
US
Help please...

I'm using an Access form command button to open 2 spreadsheets. When the spreadsheets are open they hide the Access form that I need to immediately view for further processes. Is there a way to automatically set the focus back on the form once the spreadsheets are opened without having to click on the Access tab.

Here is the code that I'm trying without success:

Forms!frmName.Setfocus

Thanks in advance.
 
Have a look at the AppActivate instruction.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV,

AppActivate worked. I never would have found it.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top