Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tabbing to a memo field on a form 1

Status
Not open for further replies.

spruceni

Technical User
May 18, 2007
72
GB
Hi
I have a form which contains a control which displays the contents of a memo field. This can be half a page of A4 giving the details of the past contact history with a client. When I tab around the form and get to the memo the entire contents of the memo field are highlighted. This presents me with a dilemma as the users could accidentally hit a key and replace the lot.

I want them to be able to edit the memo so it would be preferable that the cursor enters the memo field at the begining but does not highlight anything.

How could I set this up?

 
Try the enter event:

Me.txtMemo.SelStart=Len(Me.txtMemo)
Me.txtMemo.SelLength=0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top