hi good morning,
I would like to ask why when I run my program, but it appears a message like this "Runtime error '381 'Invalid property array index".
I am confused about this because I am still a beginner :)
what is the solution for this?
This is my code:
For i = 0 To List2.ListCount + 1
List2.Selected(i) = True
If List2.Selected(i) = True Then
SQLTambah = "Insert Into tbmusik (idmusik,nama,judul,singer,kategori,path,location) values ('" & Text1 & "','" & Text2 & "','" & Text7 & "','" & Text3 & "','" & Combo1 & "','" & Text5 & "','" & Text8 & "')"
conn.Execute SQLTambah
Call Command1_Click
MsgBox ("Data berhasil disimpan.! :D ")
Call cmdMovetoRight_Click
Call Form_Load
End If
Next i
regards,
Vivi