Originariamente inviato da pietro09
allora ci sono errori nel tuo codice, perchè di solito si fa come suggerisce Sgro, almeno, in Access e Oracle :master:
si infatti chiedevo dove cmq ho risolto:

strSQLCount = "SELECT COUNT(*) as Totale " & strSQLCount.Substring(strSQLCount.IndexOf(" FROM "))

era qui il problema