Código:
Espero que alguien me pueda echar la mano !!! Dim condicion As String
condicion = ""
If Trim(nombre1) <> "" Then
condicion = condicion & "(NOMBRE_C Like '%" & nombre1 & "%')and"
End If
If Trim(calle1) <> "" Then
condicion = condicion & "(CALLE Like '%" & calle1 & "%')and"
End If
If Trim(colonia1) <> "" Then
condicion = condicion & "(COLONIA Like '%" & colonia1 & "%')and"
End If
If Trim(poblacion1) <> "" Then
condicion = condicion & "(POBLACION Like '%" & poblacion1 & "%')and"
End If
If Len(condicion) Then
If Right(condicion, 3) = "and" Then
condicion = Left(condicion, Len(condicion) - 3)
End If
End If
Saludos!!!
Saludos!
pero se me paso escribirlo.
