我的项目有错误
Run-time error '13' Type mismatch with this code in vb6
码:
rs.Open "select * from Table1 where ItemName like '%" And txtItemName.Text And "%'", con, adOpenDynamic
有人可以帮我理解为什么以及如何解决它吗?
最佳答案
更换
'%" And txtItemName.Text And "%'
与
'%" & txtItemName.Text & "%'
关于error-handling - 运行项目时vb6代码中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43840333/