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 / April 2008

Tip: Looking for answers? Try searching our database.

Redirect Control Focus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
=Ray= - 22 Apr 2008 15:28 GMT
I have a form with a subform, and if you tab through the subform's fields,
after the last field, it tabs back to the first field on a new record. But
instead of this, I want it to send the focus to a different control (on the
main form) when you tab out of that field.

The problem is I don't see any method to do this. I'm thinking there should
be a
ControlA.Sendfocus ControlB
method or something that I can put in the ControlA_LostFocus Procedure.

Can someone tell me how I can accomplish this?
Thanks,
Ray
Klatuu - 22 Apr 2008 19:20 GMT
Use the LostFocus event of the last control on the subform

Me.Parent.ControlName.SetFocus
Signature

Dave Hargis, Microsoft Access MVP

> I have a form with a subform, and if you tab through the subform's fields,
> after the last field, it tabs back to the first field on a new record. But
[quoted text clipped - 9 lines]
> Thanks,
> Ray
 
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.