10/08/2004, 10:10
|
| Colaborador | | Fecha de Ingreso: febrero-2001 Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 9 meses Puntos: 535 | |
Otra solución que al menos con BD's access funciona:
Código:
Function AccIns(Str)
Dim CurLtr
For x = 1 To Len(Str)
CurLtr = Mid(Str, x, 1)
Select Case CurLtr
Case "a", "à", "á"
AccIns = AccIns & "[aàá]"
Case "e", "é", "è"
AccIns = AccIns & "[eéè]"
Case "i", "ì", "í"
AccIns = AccIns & "[iìí]"
Case "o", "ò", "ó"
AccIns = AccIns & "[oòó]"
Case "u", "ù", "ú"
AccIns = AccIns & "[uùú]"
Case "n", "ñ", "Ñ"
AccIns = AccIns & "[nñÑ]"
'etc etc
Case Else
AccIns = AccIns & CurLtr
End Select
Next
End Function
criterio = request.form("el_text")
SQL = "SELECT * FROM tabla WHERE campo Like '%" & AccIns(criterio) & "%'"
|