Tema: paginando
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/05/2004, 07:50
Goizane
 
Fecha de Ingreso: abril-2004
Mensajes: 21
Antigüedad: 21 años
Puntos: 0
Es que aquí he puesto la paginación q sale bien pero cuando hago esto.... sale mal. Me enseña solo la primera página. Si hay pocos valores(menos de diez en mi caso bien) pero sino cuando le das al botón siguiente aparece que no hay más valores.

En vez del sql del principio le meto esto:

Poner_AND=False

sql="select idAutorFK, numeroPatentePK, idFabricanteFK, fechaPublicacion, fechaPrioridad, resumen, idtecnologiaFK, idPalabraClaveFK, urlEnlace, urlPdf from tb_patente where "
if (idAutor<>CStr(1)) then
if (Poner_AND) then
sql=sql & "and idAutorFK='" & idAutor & "'"
else
sql=sql & "idAutorFK='" & idAutor & "'"
Poner_AND=true
end if
end if
if (numeroPatente<>"") then
if (Poner_AND) then
sql=sql & " and numeroPatentePK LIKE '%" & numeroPatente & "%'"
else
sql=sql & " numeroPatentePK LIKE '%" & numeroPatente & "%'"
Poner_AND=true
end if
end if

Si se te ocurre algo.... estoy desesperada.
Gracias por intentarlo por lo menos.