Run time Error 2001 you cancelled previous operation
Hi thereI am getting an error message 'error 2001 cancelled previous operation'It happens when I click an item in a list boxHer eis the codePrivate Sub LstCustomer_Click()Me.RecordSource = "SELECT * FROM tblPatient " & _ "WHERE PatientId=" & "'" & Me.LstCustomer & "'"End Sub
Hi thereI am getting an error message 'error 2001 cancelled previous operation'It happens when I click an item in a list boxHer eis the codePrivate Sub LstCustomer_Click()Me.RecordSource = "SELECT * FROM tblPatient " & _ "WHERE PatientId=" & "'" & Me.LstCustomer & "'"End Sub
Last edited: