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

textbox to multiselect listbox

Status
Not open for further replies.

access101

Programmer
Sep 4, 2010
68
US
I have a textbox on a form that has a string listed as

Text1
Text2
Text3

I want to multiselect all three if they match the listbox values.

So far i tried this:

Dim i As Variant
For i = 0 To Me.Plus.ListCount - 1
If Me.Plus.Column(0, i) = Form_OrderForm.Notes Then
Me.Plus.Selected(i) = True
End If
Next i

but it only selects the first string in my textbox

any help would be great.




 
not sure if what i wrote above makes sense or is even possible because the textbox is formatted to vbcrlf after every word.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top