Setting the position to enter text

Adzi

Registered User.
Local time
Today, 21:40
Joined
Jan 13, 2007
Messages
37
Hi,

I'm developing a form, and when the user enters a text box, a reference code start is automaticaly entered of CMP-BCA so the user can enter four digits, however I want the Carrat/Cursor/Text Pointer to move to the end of this, i.e. after the A

Is there any way to do this?
 
Simple Software Solutions

Hi

Use the on got focus event of the textbox and enter the following

Me.TxtFieldName.SelStart = Len(Me.TxtFieldName) + 1

or

Me.TxtFieldName.SelStart = 8


CodeMaster::cool:
 
Hi. In the Enter event procedure code you can add
Code:
With Me.ControlName
    .SelStart = Len(Nz(.Value,""))
End With
 
Last edited:

Users who are viewing this thread

Back
Top Bottom