K
kateri4482
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?
time after going to the next (or another) record?
kateri4482 said: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?
Clif McIrvin said:kateri4482 said: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?
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.
kateri4482 said:Thank you. That did it.
Clif McIrvin said:kateri4482 said: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?
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.
--
Clif
Still learning Access 2003
:
Open form in design view and view Tab Order. Arrange tab so that
the
object
you want as first is at top of list.
--
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?
strive4peace said:thank you, Cliff![]()