Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][Controlador ODBC Microsoft Access] Pocos parámetros. Se esperaba 1.
/pagina/buscar/usuario/buscar.asp, línea 26 si me puede ayudar se lo agradeceria mi codigo es
<html>
<head>
<title>Buscar.asp</title>
</head>
<body>
<p><span class="Estilo2">Resultados obtenidos con <strong><%=Request("palabra") %></strong></span></p>
<%
Dim conectar,RS
Set conectar=Server.CreateObject("adodb.connection")
Set RS=Server.CreateObject("adodb.recordset")
Dim Temp,Rango
Rango=Request("Tipo")
conectar.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Inetpub\wwwroot\PAGINA\cobranza.md b"
'conectar.open "cobranza_sql"
If Rango="1" Then
Temp="Select * From I_usuario Where UCase([rut])='" & UCase(Request("palabra")) & "' or UCase([nombre])='" & UCase(Request("palabra")) & "'or UCase([apellido])='" & UCase(Request("palabra")) & "'"
Else
Temp="Select * From I_usuario Where (InStr(UCase([rut]),'" & UCase(Request("palabra")) & "')>0) or (InStr(UCase([nombre]),'" & UCase(Request("palabra")) & "')>0) or (InStr(UCase([apellido]),'" & UCase(Request("palabra")) & "')>0)"
End If
RS.Open Temp, conectar
If RS.BOF And RS.EOF Then
%>
<p>No se ha encontrado ningún registro que reúna las condiciones del criterio <strong><%=Request("Criterio")%></strong> en la Base de Datos</p>
<%
Else
%>
<center>
<table border="1">
<tr>
<td width="90">Rut</td>
<td width="90">Nombre</td>
<td width="90">Apellido Paterno</td>
<td width="90">Apellido Materno</td>
<td width="90">Servicio</td>
<td width="90">Centro Costo</td>
<td width="90">Telefono</td>
<td width="90">Cargo</td>
</tr>
<% While Not RS.EOF%>
<tr>
<td width="90"><%=RS.Fields("rut")%></td>
<td width="90"><%=RS.Fields("nombre")%></td>
<td width="90"><%=RS.Fields("apellidopaterno")%></a></td>
<td width="90"><%=RS.Fields("apellidomaterno")%></td>
<td width="90"><%=RS.Fields("servicio")%></td>
<td width="90"><%=RS.Fields("ccosto")%></a></td>
<td width="90"><%=RS.Fields("telefono")%></td>
<td width="90"><%=RS.Fields("cargo")%></td>
</tr>
<%
RS.MoveNext
Wend
RS.Close
conectar.Close
End If
%>
</table>
</center>
</body>
</html>
espero ke me ayude mucha gracia

