control focus when form opens

G

Guest

Using access xp

I have a form with a form header section, a detail section and a footer
section.

For some reason, when the form opens it opens with focus on a control in the
detail section, but I want initial focus to be in the header section.

When I go to view>tab order, the radio buttom of the detail section is
selected. When I select the radio button of the header, the header control
list is displayed, but when I close and reopen the tab order, detail is again
selected. I can't see where to change this, how do I get the form to open
with focus in the header, not the detail?

Thanks.
 
G

Guest

The default is the focus goes to the first control in the Detail Section tab
order. You can override that by setting the focus to the desired control in
the Load event of the form:

Me.MyFavoriteControl.Setfocus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top