I have the following code attached to an edit button for a listbox
Code:
Dim varItm As Variant
Dim sSQL As String
sSQL = "UPDATE tblRelief_Allot SET tblRelief_Allot.GrRating = '" & Me.txtRating & "' " & _
"WHERE tblRelief_Allot.EmpId='" & Me.cboSearchName.Column(0) & "' " & _
"AND tblRelief_Allot.ReliefCode=" & Me.listFunctions.Column(4, varItm) & ";" 'to ammend remove , varItem
I have tried multiselect simple and also extended
instead of editing the items I have selected it is changing all the items that are in the listbox
any ideas?