Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot perform 'like' operation on system.double and system.string

Status
Not open for further replies.

mjassalina

Programmer
Nov 29, 2020
19
PH
Cannot perform 'like' operation on system.double and system.string


Hi, Im experiencing this error, Can anyone help me regarding this?

Here's the code:


LstTableBindingSource.Filter = "(Convert([Defect ID], 'System.String') LIKE '" & txtSearch.Text & "')" &
"OR (Sen LIKE '" & txtSearch.Text & "')"


Thank you.
 
The error message is your friend here, and is pretty specific about what the problem is: Sen is clearly a double (or is being coerced to one somewhere), and needs to be converted - just like [Defect ID]- to a string.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top