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

Tip: Looking for answers? Try searching our database.

Back to the beginning of the form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kateri4482 - 30 Jul 2008 23:03 GMT
How do I get the cursor to start at the beginning of the form each and every
time after going to the next (or another) record?
KARL DEWEY - 30 Jul 2008 23:08 GMT
Open form in design view and view Tab Order.  Arrange tab so that the object
you want as first is at top of list.
Signature

KARL DEWEY
Build a little - Test a little

> How do I get the cursor to start at the beginning of the form each and every
> time after going to the next (or another) record?
kateri4482 - 30 Jul 2008 23:15 GMT
Thank you - but the tab order is fine.  What I mean is: if I am in, say, the
5th field of a record on a form, and then I go to the next record, the cursor
remains on the 5th field.  I want it to start on the 1st field in the tab
order each time.  Does that make sense?

> Open form in design view and view Tab Order.  Arrange tab so that the object
> you want as first is at top of list.
>
> > How do I get the cursor to start at the beginning of the form each and every
> > time after going to the next (or another) record?
strive4peace - 30 Jul 2008 23:58 GMT
put this code on the form Current event:

'~~~~~~~~~~~~~~
Private Sub Form_Current()
   On Error Resume Next
   Me.controlname.SetFocus
End Sub
'~~~~~~~~~~~~~~

WHERE
controlname is the name of the control you want to set the focus to

Warm Regards,
Crystal

remote programming and training

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

 *
   (: have an awesome day :)
 *

> Thank you - but the tab order is fine.  What I mean is: if I am in, say, the
> 5th field of a record on a form, and then I go to the next record, the cursor
[quoted text clipped - 6 lines]
>>> How do I get the cursor to start at the beginning of the form each and every
>>> time after going to the next (or another) record?
Clif McIrvin - 31 Jul 2008 00:11 GMT
> Thank you - but the tab order is fine.  What I mean is: if I am in,
> say, the
[quoted text clipped - 3 lines]
> tab
> order each time.  Does that make sense?

You can add an OnCurrent event procedure to the form to set the focus to
your first control:

Private Sub Form_Current()
 Me.[NameOfFirstControl].SetFocus
End Sub

Open form in design view and go to the events tab of the form property
sheet. Select [event procedure] from the OnCurrent dropdown list, and
paste the above code into the code window that appears when you click
the [...] code builder button.

Signature

Clif
Still learning Access 2003

>> Open form in design view and view Tab Order.  Arrange tab so that the
>> object
[quoted text clipped - 3 lines]
>> > and every
>> > time after going to the next (or another) record?

Signature

Clif
Still learning Access 2003

kateri4482 - 31 Jul 2008 16:20 GMT
Thank you.  That did it.

> > Thank you - but the tab order is fine.  What I mean is: if I am in,
> > say, the
[quoted text clipped - 23 lines]
> >> > and every
> >> > time after going to the next (or another) record?
Clif McIrvin - 31 Jul 2008 16:55 GMT
> Thank you.  That did it.

You're welcome.

I hope you took note of Crystal's reply ... hers was better than mine.
<grin>
(error handling, *and* a link to excellent reference material!)
Signature

Clif
Still learning Access 2003

>> > Thank you - but the tab order is fine.  What I mean is: if I am in,
>> > say, the
[quoted text clipped - 29 lines]
>> >> > and every
>> >> > time after going to the next (or another) record?

Signature

Clif
Still learning Access 2003

strive4peace - 31 Jul 2008 17:08 GMT
thank you, Cliff ;)

Warm Regards,
Crystal

remote programming and training

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

 *
   (: have an awesome day :)
 *

>> Thank you.  That did it.
>
[quoted text clipped - 3 lines]
> <grin>
> (error handling, *and* a link to excellent reference material!)
Clif McIrvin - 31 Jul 2008 18:30 GMT
> thank you, Cliff ;)

You're quite welcome.
Signature

Clif

 
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.