Cursor to the end!!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone tell me how to get the cursor to go to the end of existing text
in a memo field when I open the form. Any help would be appreciated.
 
Hi Don, use the SelLength property on the memo field's Enter event:

Private Sub txtMyMemoField_Enter()
On Error GoTo ErrorPoint

Me.txtMyMemoField.SelStart = Me.txtMyMemoField.SelLength

ExitPoint:
Exit Sub

ErrorPoint:
MsgBox "The following error has occurred:" _
& vbNewLine & "Error Number: " & Err.Number _
& vbNewLine & "Error Description: " & Err.Description _
, vbExclamation, "Unexpected Error"
Resume ExitPoint

End Sub
 
Don said:
Can someone tell me how to get the cursor to go to the end of existing text
in a memo field when I open the form. Any help would be appreciated.

Try :
Tools --> Options --> Keyboard Tab,
and then under "Behavior Entering Field", select the option for "Go to end
of field"

-Amit
 
Back
Top