nop, no funciona, mismo error:
Ahora busca de a 1 campo o campos en blancos para traer todo.
Error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC driver does not support the requested properties.
/PlanManagementTool/search.asp, line 57
<%
poo = Request.Form ("texto")
sta = Request.Form ("nombre")
'opcional
set rs = Server.CreateObject("ADODB.Recordset")
sql = " SELECT fields from Plans "
If(poo <>"") then
sql2 = sql2 & " WHERE Pool LIKE '%" & poo & "%' "
end if
If(sta <>"") then
sql2 = sql2 & " WHERE Status LIKE '%" & sta & "%' "
end if
If(poo <>"" AND sta <>"") then
sql2 = sql2 & " WHERE Pool LIKE '%" & poo & "%' AND Status LIKE '%" & sta & "%' "
end if
sql = sql & sql2
dbfile=Server.MapPath("fpdb/ticketsgenerales.mdb")
Set OBJdbConnection=Server.CreateObject("ADODB.Connect ion")
OBJdbConnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq="&dbfile
rs.Open Sql, OBJdbConnection, 1, 1%>
No habra algun problema en la sequencia :
If(poo <>"" AND sta <>"") then
sql2 = sql2 & " WHERE Pool LIKE '%" & poo & "%' AND Status LIKE '%" & sta & "%' "
end if ?
Gracias!