W
weiweiHU
Unregistered / Unconfirmed
GUEST, unregistred user!
从来没用过ACCESS数据库,刚才用原来一直使用的SQL语句查询老报错:<br>加了#号了<br>........<br>Adoquery1.sql.add('select * from TB')<br>Adoquery1.sql.add('WHERE ID<>0')<br>Adoquery1.sql.add('AND endDate<=#'+formatdatetime('yyyy-mm-dd hh:mm:ss',date)+'#')<br><br>Ado.query1.open