e poi queste

if regione<>"" or regione<>NULL then

sono sbagliate. se ci ragioni ti accorgi che ci vuole AND