Place cursor at end!

D

Don

Can someone help me with the code needed to place the cursor at the end of
existing text in a memo box? I have my memo box on page 3 of a multi-tab
sheet. Thanks for your help.
 
F

fredg

Can someone help me with the code needed to place the cursor at the end of
existing text in a memo box? I have my memo box on page 3 of a multi-tab
sheet. Thanks for your help.

Code the Memo control's Enter event:

Me![MemoControl].SelStart = Len(Me![MemoControl])

This will work as long as you tab or use code to enter the field.
It will not work if the user uses the cursor and clicks in the field.
In that case, entry is where ever the cursor is placed.
 
Top