Text Positioning

P

PeterM

I have a form which contains a subform. The subform contains text only. I
have set the scrollbars to vertical only on the subform because the space for
the subform on the form is smaller than the text, hence the need for the
vertical scrollbar. For clarification... the subform height is 2 inches, the
subform height on the form is 1 inch.

My problem is that when the form is opened, the subform displays itself but
is positioned at the bottom of the subform text, not the top. The scrollbar
is there to reposition it but I need it to open with the text of the subform
to be positioned at the top.

Does anyone have an idea why that is?

Thanks as always!
 
J

John W. Vinson

I have a form which contains a subform. The subform contains text only. I
have set the scrollbars to vertical only on the subform because the space for
the subform on the form is smaller than the text, hence the need for the
vertical scrollbar. For clarification... the subform height is 2 inches, the
subform height on the form is 1 inch.

My problem is that when the form is opened, the subform displays itself but
is positioned at the bottom of the subform text, not the top. The scrollbar
is there to reposition it but I need it to open with the text of the subform
to be positioned at the top.

Does anyone have an idea why that is?

Thanks as always!

Try putting a line in the textbox's SetFocus event:

Private Sub textboxname_SetFocus()
Me!textboxname.SelStart = 0
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