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

Combo Box listing problem

Status
Not open for further replies.

rizunb

Programmer
Feb 27, 2003
63
0
0
CA
Hi People
How are you doin
Ok I am using access and I have this combo box which is displaying some strings. Now I have actually written some sql that extracts records from the database and then shows them in the combo box

here is the code

Do Until rst.EOF
fillproj = fillproj & Trim(rst("projectName")) & ";"
rst.MoveNext
Loop
cbo_proj.RowSourceType = "value list"
cbo_proj.RowSource = fillproj

Now problem is that one record is like "agencies,meetings"
Now when it comes to display this it splits it in 2 rows
like agencies in 1 row and meeting in second row in the combo box. OfCourse it is doing this because of the comma sign. Now I have no idea how to get this fixed.

I hope you people undertand my problem
Thanks in advance
Rizzzzzzzz
 
Can you use the Replace() function to get replace the comma with something else? Or do you need the comma in there?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top