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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WHY IS MY TEXT ALWAYS HIGHLIGHTED IN MY MEMO FIELD

Status
Not open for further replies.

chubby

Programmer
Apr 28, 2001
278
US
I have a question:
Why is it that every time I go to open up and use my notes
form the text is always Highlighted? This has cause some data to be deleted. Is there anyway to change or fix this?

I'm using
Access: 2000
OS: Windows NT 4.0
Type of form: Tab sub form
Field type: Memo
 
probably you have set the field as the first tab stop.
 
I left everything in the default state. But how would I change this?
 
Thanks, I just changed it to NO and it works the way I want it to...

Thanks again...
 
This is some code you can apply to the on enter event procedure, which will tell the program to go to the end of the field.

Private Sub txtAssignee_Enter()
On Error GoTo ErrorField1

Me.txtField.SelStart = Me.txtField.SelLength

ExitField:
Exit Sub

ErrorField:
MsgBox Err.Description
Resume ExitField

End Sub

Linda Adams
Visit my web site for writing and Microsoft Word tips: Official web site for actor David Hedison:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top