子句之间的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 ?
答案 0 :(得分:1)
WHERE [Purchase].date BETWEEN date= ? AND ?
是无效的语法。尝试:
WHERE [Purchase].date BETWEEN ? AND ?