Microsoft VBScript compilation error '800a0401'

grottafelix

Utente Attivo
5 Mar 2003
2.410
2
38
46
Parco chiuso -
www.girsms.com
SELECT COUNT(Tipo) AS totaleRecord FROM atti WHERE ((tipo = 'Lancia') and (Modello = 'Y') and (allegato <>''))

ho provato anche cosi

strSQL = "SELECT COUNT(Tipo) AS totaleRecord FROM atti WHERE ((tipo = 'Lancia') and (Modello = 'Y') and (allegato <>''))"

ma mi da errore

Microsoft VBScript compilation error '800a0401'

Expected end of statement

sulla penultima parentesi...

mi sto scervellando ma non capisco dove sbaglio...

il campo allegato contiene o testo o è vuoto...
 
Uè compà! :D

Ciao Felix!
Il problema potrebbe dipendere dal fatto che il campo "allegato" è nullo.
Prova a fare così:
strSQL = "SELECT COUNT(Tipo) AS totaleRecord FROM atti WHERE tipo = 'Lancia' and Modello = 'Y' and allegato IS NOT NULL;"

Fammi sapere :)
 
Uè compà! :D

Ciao Felix!
Il problema potrebbe dipendere dal fatto che il campo "allegato" è nullo.
Prova a fare così:
strSQL = "SELECT COUNT(Tipo) AS totaleRecord FROM atti WHERE tipo = 'Lancia' and Modello = 'Y' and allegato IS NOT NULL;"

Fammi sapere :)

ciao pole innanzitutto benriletto e grazie della tua pronta risposta.

ho fatto come dici ma idem errore

Microsoft VBScript compilation error '800a0409'

Unterminated string constant
 

Discussioni simili