Re: Change default tab behavior -> don"t highlight text?

Re: Change default tab behavior -> don"t highlight text?

am 19.11.2007 02:12:54 von Bob Quintal

Doug@NoEmail.com wrote in news:fho1k356g59moof32h8usn6gb3dsdphcq1@
4ax.com:

> Hi,
>
> Is there a way to have the text not be selected when you tab onto
a
> field? (All forms, all fields.)
>
yes. From the main menu, tools, options, behaviour entering field;
choose an option that pleases you, the default obviously does not.


> Is there a way to keep a form from advancing to the next record
when
> you press tab on the last field, and instead move the cursor back
to
> the first field?
>
Yes, in the form's properties, set the cycle property to Current
Record. (it's in the Other tab.

>
>



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Change default tab behavior -> don"t highlight text?

am 19.11.2007 02:19:42 von Doug

Hi,

Is there a way to have the text not be selected when you tab onto a
field? (All forms, all fields.)

Is there a way to keep a form from advancing to the next record when
you press tab on the last field, and instead move the cursor back to
the first field?

Re: Change default tab behavior -> don"t highlight text?

am 19.11.2007 10:26:18 von Doug

Perfect. Thanks.


On 19 Nov 2007 01:12:54 GMT, Bob Quintal
wrote:

>Doug@NoEmail.com wrote in news:fho1k356g59moof32h8usn6gb3dsdphcq1@
>4ax.com:
>
>> Hi,
>>
>> Is there a way to have the text not be selected when you tab onto
>a
>> field? (All forms, all fields.)
>>
>yes. From the main menu, tools, options, behaviour entering field;
>choose an option that pleases you, the default obviously does not.
>
>
>> Is there a way to keep a form from advancing to the next record
>when
>> you press tab on the last field, and instead move the cursor back
>to
>> the first field?
>>
>Yes, in the form's properties, set the cycle property to Current
>Record. (it's in the Other tab.
>
>>
>>
>
>
>
>--
>Bob Quintal
>
>PA is y I've altered my email address.

Re: Change default tab behavior -> don"t highlight text?

am 19.11.2007 12:12:55 von Deano

wrote in message
news:fho1k356g59moof32h8usn6gb3dsdphcq1@4ax.com...
> Hi,
>
> Is there a way to have the text not be selected when you tab onto a
> field? (All forms, all fields.)

This code puts the cursor at the end of the current text in a control;

Public Sub TextEnter(RHS As TextBox)
With RHS
.SelLength = 0
.SelStart = Len(.Text)
End With
End Sub

You call it via the Enter event of the control;

Private Sub EmployeeName_Enter()
Call TextEnter(Me.EmployeeName)
End Sub