'by jay
Private Sub PopulateListView()
On Error Resume Next
Lst_addsite.ListItems.Clear
Set dbs = CurrentDb
strSQL = "SELECT * FROM temp_addsite Order By Site_No"
Set temprs = dbs.OpenRecordset(strSQL, dbOpenSnapshot)
If temprs.RecordCount > 0 Then
temprs.MoveFirst
Do Until temprs.EOF
Set lstitem = Lst_addsite.ListItems.Add(, , temprs("Site_No"))
lstitem.SubItems(1) = temprs("Site_Name")
lstitem.SubItems(2) = temprs("Area")
lstitem.SubItems(3) = temprs("Quantity")
lstitem.SubItems(4) = temprs("Address")
lstitem.SubItems(5) = temprs("ID_Number")
On Error Resume Next 'continue even in error
temprs.MoveNext
Set lstitem = Nothing
Loop
End If
Set temprs = Nothing
this my code,,try it... it works on my listview in msaccess
dim lstitem as listitem