dDateDebut est une chaine = "20080101"
dDateFin est une chaine = "20081231"
SELECT , WL.Gauche(DatePiece,6) AS AnneeMois, SUM(Montant)
FROM tblVentes
GROUB BY WL.Gauche(DatePiece,6)
HAVING (DatePiece BETWEEN '" + dDateDebut + "' AND '" + dDateFin + "')"
ORDER BY DatePiece
Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=18&topic_id=5742&post_id=23408