I have this query :
SELECT * FROM Vente WHERE
(DatePart ("d", Vente.DateDebut)=01) and
(DatePart ("m", Vente.DateDebut)=06) and
(DatePart ("yyyy", Vente.DateDebut)=2017);
This query is working fine in MS Access 2010 , but when I try to excute it from TFDQuery
component , it give me an error :
[FireDAC][Phys][ODBC][Microsoft][Pilote ODBC Microsoft Access] Too few parameters. 3 Expected ...
What's the problem? How can I fix that?
Update:
It seems like the problem in the DatePart ()
function , because I try also this:
SELECT DatePart ("d", Vente.DateDebut) FROM Vente
And it give me the same error , just with "3 Expected ..." becomes "1 Expected ...".