Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2003
    Messaggi
    269

    group by su query su excel

    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;"""

  2. #2
    Utente di HTML.it L'avatar di viki1967
    Registrato dal
    Feb 2003
    Messaggi
    1,757
    codice:
    sql = "select [CENTRO DI COSTO], [CENTRO LAVORO] from [Foglio1$] group by [CENTRO LAVORO], [CENTRO DI COSTO]"
    A S P : tutto il resto è noia...
    L I N U X : forse mi "converto"...

  3. #3
    Utente di HTML.it
    Registrato dal
    May 2003
    Messaggi
    269
    grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.