you're right, fixed it and Sql string works fine as recordsource
but if i use sql as subquery like that
i get the same error.Code:Me.AnalisiOperazioneGrafico.RowSource = "SELECT IDtrattativa, NomeCognome, [Ricavi] AS Valore, 'Redditivitą' AS CostiRicavi FROM (" & Sql & ") " & _ "UNION SELECT IDtrattativa, NomeCognome, [costi], 'Costi' FROM (" & Sql & ");"