How to insert another row value in the listview of vb6?

Thanks,

  • Jeff -

i used do until loop

dim rsStockChk as new adodb.recordset
set rsStockChk = new adodb.recordset
rsStockChk.open "stocks", gobjconn, adopendynamic, adlockpessimistic
do untill rsStockChk.eof = true
    dim listobj as listitem
    set listobj = listview1.listitem.add(, , rsStockChk!item_code)
    listobj.subitems(1) = rsStockChk!Qty
    listobj.subitems(2) = rsStockChk!Discription
    rsStockChk.movenext
loop

adjust the code accourding to your need
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.