VB+Access,使用DAO连接。现表里有一字符型字段strDate,保存日期数据。现如何在VB中写查询语句,具体请进入。。。
如题,条件是字段strDate中的时间和VB中传入的时间字符串比较查询出数据?该怎么写?
如:
daoDB_Local.OpenRecordset("select intYear,bytPeriod from operator where strDate <= " + strRegDate + " and strDate >= " + strRegDate)
其中strRegDate为传入的时间字符串。
快点啊,谢谢!
我没有多少分了,只能给这么多了!