Cursor position after using zoom box

  • Thread starter Thread starter CW
  • Start date Start date
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
 
Take a look at the SelStart and SelLength properties.

Me.MyTextbox.SelStart = 0
Me.MyTextbox.SelLength = 0
 
Back
Top