I am useing ms sql express and the code below works if I don't try to query multiple fileds. Here is the code and and the error can enyone help witht his it worked with access however not with sql?
sql = "SELECT * FROM [Project] WHERE [Project].[Name] & [Project].[ID] & [Project].[Phone] LIKE '%" &Trim(request.form("searchcriteria")) & "%' ORDER BY [Debtors].[DebtorName] ASC"
rs.open sql, conn
error
Microsoft SQL Native Client error '80040e14'
The data types varchar and varchar are incompatible in the boolean AND operator.
/control/company/admin/search.asp, line 33
sql = "SELECT * FROM [Project] WHERE [Project].[Name] & [Project].[ID] & [Project].[Phone] LIKE '%" &Trim(request.form("searchcriteria")) & "%' ORDER BY [Debtors].[DebtorName] ASC"
rs.open sql, conn
error
Microsoft SQL Native Client error '80040e14'
The data types varchar and varchar are incompatible in the boolean AND operator.
/control/company/admin/search.asp, line 33