la seguente query su un file excel mi da un errore ma non capisco xchè :
codice:sql = "select [CENTRO DI COSTO], [CENTRO LAVORO] from [Foglio1$] group by [CENTRO LAVORO]" errore : Error Type: Microsoft JET Database Engine (0x80040E21) You tried to execute a query that does not include the specified expression 'CENTRO DI COSTO' as part of an aggregate function. la connessione : Application("CMM")="Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source="& Server.MapPath("area_protetta/dati/dati.xls") &_ ";Extended Properties=""Excel 8.0;HDR=YES;"""

Rispondi quotando
