strquery = "select * from tabble where name like '%"& text1 &"%'"
strrs.Open strquery, conn, adOpenKeyset, adLockOptimistic
Data1.DatabaseName = "" & App.Path & "\DB\sptjj.mdb"
Data1.RecordSource = strquery
Data1.Refresh
我用了一个MSFlexGrid1,把MSFlexGrid1的datasource设置为data1,当strquery查询为模糊查询时,MSFlexGrid1也显示相应的行数,但里面什么内容也没有,如果strquery查询为精确查询时,也就是
strquery = "select * from tabble where name ='"& text1 &"'"时,MSFlexGrid1就显示正常,这是什么原因,我搞不清楚~~~郁闷!!
strrs.Open strquery, conn, adOpenKeyset, adLockOptimistic
Data1.DatabaseName = "" & App.Path & "\DB\sptjj.mdb"
Data1.RecordSource = strquery
Data1.Refresh
我用了一个MSFlexGrid1,把MSFlexGrid1的datasource设置为data1,当strquery查询为模糊查询时,MSFlexGrid1也显示相应的行数,但里面什么内容也没有,如果strquery查询为精确查询时,也就是
strquery = "select * from tabble where name ='"& text1 &"'"时,MSFlexGrid1就显示正常,这是什么原因,我搞不清楚~~~郁闷!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货