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

Add text to memo field without overwriting existing text

Status
Not open for further replies.

mhall

Technical User
Sep 26, 2000
13
GB
I have a form that contains several fields with pick list and a memo field. When a selection is made from one of the combo boxs text is entered into the memo field. The only problem is that this field could already have text entered.
How can I add the text to a new line in the memo field using code.
 
Say your combo box is Combo6 and your memofield = "thememo", this code in the AfterUpdate event of Combo6 should give you what you're after:
Code:
Private Sub Combo6_AfterUpdate()
Me![thememo] = RTrim(Me![thememo]) & Chr(13) & Chr(10) & Me![Combo6]
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top