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 / Setup / Configuration / February 2004

Tip: Looking for answers? Try searching our database.

Return to top

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Slp - 06 Feb 2004 23:22 GMT
I have a database that has about 15 fields in it. for the
most part I only use the first 8 then I click on next
record to continue adding records but the cursor stays on
field 8 is there anyway to make the cursor go to the first
field for every new record?

Thanks
Lynn
Bruce M. Thompson - 07 Feb 2004 00:14 GMT
> I have a database that has about 15 fields in it. for the
> most part I only use the first 8 then I click on next
> record to continue adding records but the cursor stays on
> field 8 is there anyway to make the cursor go to the first
> field for every new record?

In the form's "On Current" event procedure, you can use code something like
this:

'***
   'If you want to move to the first field on every record change
Me.ControlName.SetFocus

   'If you only want to move to the first field on a record change
   '  when you have moved to a "new" record
If Me.NewRecord Then
   Me.ControlName.SetFocus
End If
'***

You would need to replace "ControlName" with the name of the control that
represents the "first" field on your form.

Signature

Bruce M. Thompson, Microsoft Access MVP
bthmpson@mvps.org (See the Access FAQ at http://www.mvps.org/access)

>> NO Email Please. Keep all communications
    within the newsgroups so that all might benefit.<<
 
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.