Behavior Entering Field

  • Thread starter Thread starter Snurre
  • Start date Start date
S

Snurre

Hi,

Is there a way to set "Behavior Entering Field", "1" on a
textbox or combobox and all other fields remain:

Private Sub Form_Open(cancel As Integer)
Application.SetOption "Behavior Entering Field", "2"
End Sub

snurre
 
Behavior entering field is a property of the application; change it once, it
changes everywhere.
But it can be overridden by explicitly setting the SelStart and SelLength
properties of a control on its OnEnter event.

HTH
- Turtle
 
Thank you, just like this:

Private Sub Status_GotFocus()
Me!Status.SelStart = 0
Me!Status.SelLength = 1
End Sub
 
Back
Top