codice:
"Select Year(Data) as Anni from News group BY Year(Data) order BY Year(Data) Desc"
e fin qui tutto bene ma se volessi filtrarla aggiungendo anche un'altro campo tipo:
codice:
"Select Cat, Year(Data) as Anni from News group BY Year(Data) where Cat= " & Cat & " order BY Year(Data) Desc"
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'Year(Data) where Cat= 2'.
Sto fondendo ?