Text Box Zoom Question

P

Posse John

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

Top