Ti comincio la query dinamica...
Robycodice:strSQL = "SELECT * FROM schede" strTXT = "" If Request("regione") <> "%" Then strTXT = " regione = '" & Request("regione") & "'" end if If Request("provincia") <> "%" Then if strTXT = "" then strTXT = " provincia = '" & Request("provincia") & "'" else strTXT = strTXT & " AND provincia = '" & Request("provincia") & "'" end if end if ... ... if strTXT <> "" then strSQL = strSQL &" WHERE"& strTXT end if

Rispondi quotando
