Hi,
I'm using Delphi 7, MS ACCESS and MySQL 4.0.20 via ADO.
I'm trying to make simples Querys with parameters
code :
Code:
Query.SQL.Text:='Select sum(debit),sum(credit) '+
'from MaTable '+
'where (Month(jour)=:PMois) and (Year(jour)=:PAn)';
Query.Parameters[0].Value:=5;
Query.Parameters[1].Value:=2000;
Query.Open;
The problem is :
-> When I'm connected to ACCESS, Works Fine !
-> When I'm connected to MySQL, I got a ERROR message : 'Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another'
Any help would be greatly apreciated.
thanks