Code: Select all
ICO=2
...
Set itmX = Me.ListView1.ListItems.Add(, , Format$(strDBRows(0, X), "#0000"), ICO)
itmX.SmallIcon = ICO
...
and instead to use the recordset i need to change the item with myvar=8500
possible?
Code: Select all
ICO=2
...
Set itmX = Me.ListView1.ListItems.Add(, , Format$(strDBRows(0, X), "#0000"), ICO)
itmX.SmallIcon = ICO
...
Code: Select all
With Me.ListView1.SelectedItem
.Text = Format(MyVar, "0000")
.Icon = 1
.SmallIcon = 1
End With
work perfect!HansV wrote:Try
Code: Select all
With Me.ListView1.SelectedItem .Text = Format(MyVar, "0000") .Icon = 1 .SmallIcon = 1 End With
Code: Select all
With Me.ListView1.SelectedItem
.Text = Format(MyVar, "0000")
.Icon = 1
.SmallIcon = 1
.SubItems(10) = 1
End With
nO WORDS!HansV wrote:Something like
Code: Select all
With Me.ListView1.SelectedItem .Text = Format(MyVar, "0000") .Icon = 1 .SmallIcon = 1 .SubItems(10) = 1 End With