Cursor position after using zoom box

C

CW

I have used DoCmd.RunCommand acCmdZoomBox on the DoubleClick event to expand
some text boxes so that we can enter more info than the normal control size
will display at any one time.
This works fine except that when a box is collapsed back to its normal size
the cursor is at the end position, i.e. the control displays the last few
words of the text.
We would prefer it to show the opening part of the text, the first few words.
I have played around with SetFocus but cannot get this to work -
Would appreciate some advice, many thanks
CW
 
D

Douglas J. Steele

Take a look at the SelStart and SelLength properties.

Me.MyTextbox.SelStart = 0
Me.MyTextbox.SelLength = 0
 

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

Similar Threads


Top