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.

Setting focus to field on subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kbrad - 10 Mar 2005 21:47 GMT
I am using me.myfield.setFocus to put the cursor in myfield when my form
opens. myfield is on a subform within my form. No problem with that.
I then have some validation that cuts in when a value is input into myfield.
If the validation fails I blank out what was entered and want the cursor to
be postioned back in myfield (on the subform) ready to type in again. This
time me.myfield.setFocus doesn't work - the cursor just disappears.Can anyone
tell me how to do what I want.
Jonathan Parminter - 11 Mar 2005 02:03 GMT
> I am using me.myfield.setFocus to put the cursor in myfield when my form
> opens. myfield is on a subform within my form. No problem with that.
[quoted text clipped - 3 lines]
> time me.myfield.setFocus doesn't work - the cursor just disappears.Can anyone
> tell me how to do what I want.

Hi kbrad,
use the beforeUpdate event for data validation of a control. If the
validation fails, set cancel = true

Luck
Jonathan
 
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.