Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2005

Tip: Looking for answers? Try searching our database.

Moving focus from 1 Form to another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 31 Mar 2005 13:35 GMT
Hello,

If I have an application that can have multiple Forms open at the same time
& even Report Viewing Windows, how can I automatically activate (or set the
Focus to) different Forms through VBA coding ?

I know there is ControlName.SetFocus but you cant do that with a Form.  How
can that be done, something like FormName.SetFocus.

Any help would be greatly appreciated.

Thank you,
Jeff
Nikos Yannacopoulos - 31 Mar 2005 13:41 GMT
Jeff,

You are very close! Try:

Forms("FormName").SetFocus

HTH,
Nikos

> Hello,
>
[quoted text clipped - 9 lines]
> Thank you,
> Jeff
Ron Weiner - 31 Mar 2005 13:52 GMT
Or this alternative syntax

Forms!FormName.SetFocus

Ron W
> Jeff,
>
[quoted text clipped - 18 lines]
> > Thank you,
> > Jeff
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.