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

Multiple entries in Text Box 1

Status
Not open for further replies.

NewbyOld

Programmer
Mar 1, 2001
6
GB
Hello,

I have a combo box that contains a pick list of strings. When a value is 'picked' I want to copy the string to a text box. The user can make multiple selections from the combo box. I want these multiple selections stored in the text box for later processing. I hoped that something like txtKeys = txtKeys + chr(13) + cboKeys would give me a CRLF between selected values. However this doesn't work. How do I get my multiple selections into the text box?
 
On the AfterUpdate event of your combo, something Like:
Me.TextboxName = Me.TextBoxName & vbCrLf & Me.ComboBoxName
Should work. Gord
ghubbell@total.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top