读书人

VB ADODC连ACCESS时日期比较有关问题.

发布时间: 2012-06-14 16:00:31 作者: rapoo

VB ADODC连ACCESS时日期比较问题....
Adodc1.RecordSource = "select * from 租金 where 租金.日期 < " & "#2011-10-1#"
这条语句的结果为 一条符合的数据都没有
Adodc1.RecordSource = "select * from 租金 where 租金.日期 < " & "#2011-9-30#"
这条语句是有结果的..
Adodc1.RecordSource = "select * from 租金 where 租金.日期 < " & "#2012-10-1#"
这条语句又有结果了.. 有人能解释一下吗?

[解决办法]

探讨
Adodc1.RecordSource = "select * from 租金 where 租金.日期 < " & "#2011-10-1#"
这条语句的结果为 一条符合的数据都没有
Adodc1.RecordSource = "select * from 租金 where 租金.日期 < " & "#2011-9-30#"
这条语句是有结果的..
Adodc1.Recor……

读书人网 >VB

热点推荐