条款之间的MS访问不工作

时间:2016-06-17 07:57:48

标签: sql ms-access ms-access-2007

子句之间的MS访问不工作(2个日期之间)。

我的查询如下:

SELECT     [Supplier].sname, 
           [Supplier].scontact, 
           [Supplier].sadd, 
           [Purchase].qnt, 
           [Purchase].item, 
           [Purchase].price, 
           [Purchase].priceperkg, 
           [Purchase].date, 
           [Purchase].suppid, 
           [Purchase].purchaseid 
FROM       Purchase 
INNER JOIN Supplier 
ON         Purchase.suppid = Supplier.sid 
WHERE      [Purchase].date BETWEEN date= ? AND ?

1 个答案:

答案 0 :(得分:1)

WHERE [Purchase].date BETWEEN date= ? AND ?是无效的语法。尝试:

WHERE   [Purchase].date BETWEEN ? AND ?