i m developing application in vb 6 and sql server 7.
in my Customertable there r almost 700-800 records. i want to add all these records in list box. i use getstring method of ado to get that string in that i pass vbcrlf and also chr(13) function to seperate row but in list box instead of new line it shows square box so plz help me regarding that.
StrSQL = ""
StrSQL = "select Accountname from customertable AccountName like'" & Trim(txt.text) & "%'"
RsShow.Open StrSQL, Conn, adOpenForwardOnly
strsql=""
StrSQL = RsShow.GetString(adClipString, -1, ",", vbcrlf, "{NULL}")
lstLedgerName.AddItem StrSQL
or is there any way to add records to list without using loop.
in my Customertable there r almost 700-800 records. i want to add all these records in list box. i use getstring method of ado to get that string in that i pass vbcrlf and also chr(13) function to seperate row but in list box instead of new line it shows square box so plz help me regarding that.
StrSQL = ""
StrSQL = "select Accountname from customertable AccountName like'" & Trim(txt.text) & "%'"
RsShow.Open StrSQL, Conn, adOpenForwardOnly
strsql=""
StrSQL = RsShow.GetString(adClipString, -1, ",", vbcrlf, "{NULL}")
lstLedgerName.AddItem StrSQL
or is there any way to add records to list without using loop.