Ciao a tutti!!
Piccolo problema .. in questa query dinamica non so dove mettere il mio “order by ID desc”
codice:
 
strSQL="select * from tab "


if campo1<>"" then
	if not campo Then 
		strSQL=strSQL & " WHERE "
	else 
		strSQL=strSQL & " and "	
	end if
	campo=true 
	strSQL=strSQL & " tab.Campo1  like '" & campo1 & "'"  
end if


if campo2<>"" then
	if not campo Then 
		strSQL=strSQL & " WHERE "
	else 
		strSQL=strSQL & " and "	
	end if
	campo=true 
	strSQL=strSQL & " tab.Campo2  like '" & campo2 & "'"  
end if
:master: