N
nanfanke
Unregistered / Unconfirmed
GUEST, unregistred user!
我用这两条语句来通过日期筛选表里的记录,但好象有时候出错,有记录的却没选出,是不是这语句里有问题啊??大多数都是准的,但在有的电脑上会出错,会不会跟操作系统的日期格式之类有影响呢??<br>ADOQComm.SQL.Add(' select max(right(Code,4)) as MaxCode from TX_SellReceiveTitle ');<br>ADOQComm.SQL.Add(' where operatedate between #'+ strToday+'# and #'+strTomorrow+'#');<br><br>如果我把后一句注释了,那就一定是选出空数据集.