sql = "select quantita, [quantita 2], importo, [codice vettore], vettore, [DATA VETTORE], [DATA DDT], [NUMERO DDT], [CODICE CLIENTE], CLIENTE, DESTINATARIO, CODICE, [VETTORE 2], PREZZO, sum(quantita) as totale_quantita, sum([quantita 2]) as totale_quantita2, sum(importo) as totale_importo from lisbollone where cliente like '%"&fixsql(cliente)&"%' and destinatario like '%"&fixsql(destinatario)&"%' and codice like '%"&fixsql(articolo)&"%' and vettore like '%"&fixsql(vettore)&"%' and [vettore 2] like '%"&fixsql(piattaforma)&"%' and [data vettore] >= #"&computerdate(data_inizio)&"# and [data vettore] <= #"&computerdate(data_fine)&"# group by [codice vettore], vettore, [DATA VETTORE], [DATA DDT], [NUMERO DDT], [CODICE CLIENTE], CLIENTE, DESTINATARIO, CODICE, [VETTORE 2], PREZZO, quantita, [quantita 2], importo"