Salve
effettuando una ricerca con l'operatore like non mi viene restituito nulla quando invece i dati sono presenti il problema è l'apice ma gestito coem sempre a quanto pare non funziona.
Function CheckString2(strInput)
if strInput<>"" then
strTemp = Replace(strInput, "``",""")
strTemp = Replace(strTemp, "`","'")
strTemp = Replace(strTemp,"'","''")
strTemp = Replace(strTemp, "
",vbcr)
CheckString2 = strTemp
else
CheckString2 = ""
end if
End Function
testo = CheckString2("testo")
SELECT IDInformazione,TestoSintetico,Testo,DataInformazio ne FROM informazioni WHERE ( TestoSintetico LIKE '%%" & testo & "%%' ) ORDER BY DataInizioValidità desc
grazie anticipatamente

Rispondi quotando
