Cursor going to wrong place

  • Thread starter Thread starter elli
  • Start date Start date
E

elli

Hi

I have a small problem... My cursor is going into wrong text box when
opening some forms.... Tab order is correct and it doesn't change the
problem even if I change the taborder....
Any Ideas?

-elli-
 
Elli,

The things that can modify the tab order are as follows. Check each to see
what is happening.
* The control's Tab Order (which you said is correct)
* The control's AutoTab property. This is only relevent if code is
execute when the control receives the focus.
* The control's TabStop property. If False, the control won't receive
the focus in the *correct* order.
* The control's TabIndex. Reportedly, this can get mucked up, despite
the Tab Order dialog saying otherwise.
* The control's Visible property. Invisible controls can't receive the
focus.
* The control's Enabled property. Disabled controls can't receive the
focus.
* Code that sends the cursor elsewhere.

Regards,
Graham R Seach
Microsoft Access MVP
Canberra, Australia
 
Don't forget. The tab indexes are 0 based. That is, the first one should be
set to 0.

I use Me.txtBox.Setfocus to control the focus on the form's open event
sometimes although it is very unnecessary when you can just set the correct
one to 0.
 
Back
Top