I have the following code attached to an edit button for a listbox
I have tried multiselect simple and also extendedCode: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
instead of editing the items I have selected it is changing all the items that are in the listbox
any ideas?


Multi Select changing all withing listbox instead of the selected items
Reply With Quote

