>Thank you Fred,
>
>But my problem is when i try to enter a new record if i take my mouse cursor and put the cursor into the text field the cursor is starting from the middle and i will have spaces filled onto the right. and then if i type any text into the field the text will appear after the spaces lot of times it happens. All the text controls we have are class object's.
>
>Is there a way i can use a property for all the text boxes in the form where i define the cursor to start from the first char from right.
>
>
>Thank you.
Sure. In the GotFocus of the TextBox, you could add code something like this:
This.SelStart = LEN(ALLTRIM(this.Value))