on my form I have a combobox that will send any values (which are strings) clicked on to a listbox. i've gotten it to work fine except for when there are commas in the string. when there are commas in the string the commas act as a delimiter and break the string up onto multiple lines.
example: Ear, Nose, and Throat comes out as
does anyone have any suggestions for getting around this? this database is going to be used to export info to a printed publication so i would like to keep the commas in if at all possible.
here is my code so far:
example: Ear, Nose, and Throat comes out as
Ear
Nose
and Throat
i've looked around and found alot of posts talking about the subject, but they don't seem to apply to my specific circumstances since i'm not typing in the string but am pulling it over from a combobox. Nose
and Throat
does anyone have any suggestions for getting around this? this database is going to be used to export info to a printed publication so i would like to keep the commas in if at all possible.
here is my code so far:
Private Sub cboSpec_Change()
lstSpec.AddItem cboSpec.Column(1)
End Sub
any help is greatly appreciated!lstSpec.AddItem cboSpec.Column(1)
End Sub