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 / General 1 / December 2005

Tip: Looking for answers? Try searching our database.

Setfocus question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony - 16 Dec 2005 04:06 GMT
Hi,

On a form, when field A is changed, I update field B automatically by
Setfocus to field B, and then assign it with another value. This is
handled in the field A AfterUpdate method. After updating field B, I
want the form to continue normally. For example, setting the focus to
where I clicked last. Or in the case that I click that next record
button, the form should show the next record. Is there a way to do
this? Currently, when I click on the next record button, the form stays

at the current record. I then have to click it again to move to next
record.

Thanks,
Tony
Tony - 16 Dec 2005 07:07 GMT
I found the answer from Marshall. I have always thought that a control
has to have focus before it can be modified, which was weird. When I
remove Setfocus, the code works fine. Thanks everyone.
 
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.