age的属性 货币 我用 rsLTPayment.Open " select * from 表 where val(age) >= '%" & Text1.Text & "%'"可是效果不行,结果总是空!
rsLTPayment.Open " select * from 表 where age >= " & Text1.Text & "
rsLTPayment.Open " select * from 表 where age >= " '& Text1.Text &' "
rsLTPayment.Open " select * from 表 where age >= '" & trim(Text1.Text) & "'" 如果不行,再用 rsLTPayment.Open " select * from 表 where age >= " & trim(Text1.Text)试试 我不明白为什么要用“%”,还有你的VAl指的是什么啊?他并不能起作用啊。
rsLTPayment.Open " select * from 表 where age >=" & "#" & Text1.Text & "#"
rsLTPayment.Open " select * from 表 where age >= " '& Text1.Text &' "
我用 rsLTPayment.Open " select * from 表 where val(age) >= '%" & Text1.Text & "%'"可是效果不行,结果总是空!
如果不行,再用
rsLTPayment.Open " select * from 表 where age >= " & trim(Text1.Text)试试
我不明白为什么要用“%”,还有你的VAl指的是什么啊?他并不能起作用啊。
忘记来结帖了
我把属性改成int
rsLTPayment.Open " select * from 表 where age >=" & Text1.Text
就这么简单了
主要是我是接着以前的项目搞的
改数据库不是一个好的办法
现在也没有别的好办法了