txtsql="Select * form name where title='" & text1.text & "'" 'name 是数据库名, title 是name的一个字段你看sqlserver的查询分析器里看能不能查如果能说明,你的中文传给sqlserver时是乱码
如果不能用:txtsql="Select * form name where title like '%" & text1.text & "%'" 'name 是数据库名, title 是name的一个字段看看like 是模糊查询,%是通配符
如果不能用:txtsql="Select * form name where title like '%" & text1.text & "%'" 'name 是数据库名, title 是name的一个字段看看like 是模糊查询,%是通配符
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货