Help! Still cannot get focused on detail from header without mous

N

Nancy

I still cannot get from the header to detail with tabs. Unless I click the
mouse the first field in detail (here it is a combo box) is not focused. I
followed the advice and added a txt box as the last field in header. Then I
added an event on the GOtFocus which put the focus on the 1st field in Detail.

However, even though it moved to the field I could not just use the keyboard
and start typing - that required a click of the mouse.

Private Sub To_detail_GotFocus()
Me!account.SetFocus
End Sub


Thanks!
Nancy
 
J

Jeanette Cunningham

Nancy,
would you explain a bit more about what the user needs to do in the header
before wanting to type in the account textbox in the detail section.
For example, if user makes a selection from a combo box in the header, you
can use the after update event of the combo to set focus to a particular
field in the detail section. With this, you don't even need to press the tab
button.


Jeanette Cunningham -- Melbourne Victoria Australia
 
N

Nancy

In the last box in the header - a text box -- the user will type in a numeric
value. Then the user should tab out of that box and go into the first field
in the detail section. It actually goes to the field, however, I can not
type in it until I click the mouse on that field.

Thanks for your help,

Nancy
 
J

Jeanette Cunningham

Nancy,
I tried the suggested solution of using an unbound text box in the header to
set focus to the text box on the detail section. It works for me and I can
type in that textbox in the detail section without clicking the mouse.
There must be something else on your form that is interferring.
Create yourself a simple test form with 2 textboxes in the header and one in
the details.
Check for yourself that the above process does work on your test form.
Now go back to your real form, comment out as much of the code as possible
until you can get the tabbing process to work.
Then un-comment some of the code and try to find out which part of the code
is causing the problem.


Jeanette Cunningham -- Melbourne Victoria Australia
 

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