Text Box Zoom Question

G

Guest

I have a form with a text box that has:
..
Private Sub txtEntry_DblClick(Cancel As Integer)
DoCmd.RunCommand acCmdZoomBox
End Sub
..
When the zoom box displays, all the text is selected.

Is there a way to have the cursor display at the last character?
 
C

Cindy

Use the following in the On Enter event to move it to the end:
Me!txtEntry.SelStart = Len(txtEntry)

OR Put the following in the On Enter event to move the cursor to the
beginning:
Me!txtEntry.SelLength = 0

Cindy
 

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

Zoom box end of text 1
Very slow Zoom Box operation. 2
DoubleClick event 3
zoom command 1
open the zoom dialog box by code? 1
Zoom form from Double-Click 2
Zoom Box 1
zoom box 1

Top