请问,ADODC是不是不能用于ACCESS2000版本以上的数据库库查询? str = "select * from student"
Adodc2.RecordSource = str
Print Adodc2.Recordset.RecordCount
Print Adodc2.Recordset.AbsolutePosition
Print Text1.Text
str = "select * from student where trim(no)='" & Trim(Text1.Text) & " '"
Adodc2.RecordSource = str
Adodc2.Refresh
Print Adodc2.Recordset.RecordCount以上代码中,输出的查询前的总记录数是9,当前位置是1,text1.text中是我输入的内容,但执行了SQL语句后的查询结 果记录总数是0!我输入的内容确定是在表中有的.但就是找不到.请高手帮忙!
Adodc2.RecordSource = str
Print Adodc2.Recordset.RecordCount
Print Adodc2.Recordset.AbsolutePosition
Print Text1.Text
str = "select * from student where trim(no)='" & Trim(Text1.Text) & " '"
Adodc2.RecordSource = str
Adodc2.Refresh
Print Adodc2.Recordset.RecordCount以上代码中,输出的查询前的总记录数是9,当前位置是1,text1.text中是我输入的内容,但执行了SQL语句后的查询结 果记录总数是0!我输入的内容确定是在表中有的.但就是找不到.请高手帮忙!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货