By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,827 Members | 2,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,827 IT Pros & Developers. It's quick & easy.

Cursor in default field on form

P: n/a
Is there a way on a form of making one field the default field such
that as
soon as you navigate to the form page, the cursor is sitting on that
field
ready for data to be entered.

May 24 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
GH
David,

You can set the TabIndex property to 0 for the form field you want to
be the focus field when the form is opened. This is good for the
initial form opening and if the navigation between records is
accomplished using the Tab key. However, if you want the focus to be
on a specific field between navigation pages, you need to create an
event handler. The Form's Current event can be used to SetFocus on a
particular form field as the user navigates between records, regardless
of which field the cursor was in on the preceding record.

I hope this helps you!

Cheers,
- GH

May 24 '06 #2

P: n/a
You can control the tab order, which determines where the cursor starts, and
where it goes when you press TAB.

You can try View | Tab Order | Auto Order with your form in design view. If
it's a complex form, you may have to tweak the Tab Order values in the
Property Sheet yourself. The first control that gets focus is the one with
the lowest Tab Order value that is not disabled.
<da***********@mail.va.gov> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...
Is there a way on a form of making one field the default field such
that as
soon as you navigate to the form page, the cursor is sitting on that
field
ready for data to be entered.

May 24 '06 #3

P: n/a
Thank you. I figured out what I was doing wrong. I was trying to get
the field in the Form header to be the default. I guess I can only
default to the detail part of the form. I got that working just fine. I
have the header field on the form set to zero also. Does the detail
part of the form come first?

May 24 '06 #4

P: n/a
On 24 May 2006 11:41:58 -0700, da***********@mail.va.gov wrote:
Thank you. I figured out what I was doing wrong. I was trying to get
the field in the Form header to be the default. I guess I can only
default to the detail part of the form. I got that working just fine. I
have the header field on the form set to zero also. Does the detail
part of the form come first?


Where do you wish to go? The Form header control or the Detail
control?
Me!NameOfControl].SetFocus

If you wish to go there when navigating after each record, place that
code in the Form's Current event.
If you wish to go there only when first opening the form, place that
code in the Form's Load event.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
May 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.