Dear all,
I'm using following code to filter data in listbox. But error msg Syntax Error: Missing Operand after 'ProductName' Operator appears. Can any one figure out the Syntax error please.
Private
Sub FilterProductId() TryDim ProductIDs As TechManagement.DBComponents.ProductDB = New TechManagement.DBComponents.ProductDB Dim filterview As DataView = New DataView(ProductIDs.GetProductIDS)
filterview.RowFilter = "ProductID Like '" & txtProductID.Text & "%'" & "ProductName Like '" & txtProductID.Text & "%'"
lstProducts.DataSource = filterview
Catch ex As ExceptionMessageBox.Show(ex.Message,
Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Try End SubThanks