avevo pensato anche a questo.... anche perchè il significato del EOF non è che lo sappia
precisamente cosa vuol dire...

codice:
Dim filename
filename = Request.QueryString("nomefoto")

Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT ID, immagine FROM archivio WHERE immagine = 'filename'",objConn,3,3
If rs.("immagine").Value <> "" Then
response.Redirect("check01.asp?nscheda="&nscheda&"&nomefoto="&filename&"")
else
response.Redirect("scrivi.asp")
End if

che ne pensate?..