Behavior Entering Field

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
 
M

MacDermott

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
 
G

Guest

Thank you, just like this:

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

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