Ver Mensaje Individual
  #10 (permalink)  
Antiguo 28/05/2003, 10:53
Avatar de Helbira
Helbira
 
Fecha de Ingreso: octubre-2001
Ubicación: Sevilla, España
Mensajes: 1.228
Antigüedad: 23 años, 6 meses
Puntos: 5
La verdad es que en todos los sitios que me encuentro que usan FindFirst no es exactamente una página ASP sino código Visual Basic.

Quizás no es aplicable a un recordset en ASP. No se.. lo siento.

Encontré sentencias como las siguientes que parecen que pueden hacer lo mismo que quieres. Pruebalas a ver si hay suerte... es mejor que no hacer nada mas y conformarse con un bucle anidado:

Código PHP:
temporal.Find "npanelista=" ola5.fields("npanelista"), , adSearchForward 
Código PHP:
temporal.Find "npanelista='" ola5.fields("npanelista") & "'", , adSearchForward 
Código PHP:
temporal.Find "npanelista=#" ola5.fields("npanelista") & "#", , adSearchForward 
Y aparte encontré la siguiente información que no me atreví a crearte un ejemplo con tus parámetros por no meter la pata:


Cita:
Recordset.Find Criteria, SkipRecords, SearchDirection, Start


ADO's Find method supports four arguments, but it requires only the first: Criteria. The remaining arguments default to preset values unless you explicitly supply a value for an argument. The Criteria method specifies the criteria to use for locating a record in a Recordset object. The first optional parameter is SkipRecords; it specifies a Long that indicates the number of records to skip when locating a record in a Recordset object. The default value initially starts at "0"; this instructs the recordset not to skip the current record. Subsequent calls to the Find method set the default value to "1," which tells the recordset to skip one record forward until it finds the next record that matches the search criteria.

The third parameter, SearchDirection, specifies whether the search direction should go forward or backward. It provides the same functionality as DAO's FindFirst and FindPrevious methods. It also illustrates how ADO flattens DAO's object model; a single parameter lets ADO replace two DAO methods. The SearchDirection parameter can take either of two enumeration values (see Table 2). The Start parameter, a Variant type, serves as the Find method's final parameter. It specifies the starting location for a search, and it can be a valid bookmark or a bookmark enumeration value that specifies whether a search begins with the current, first, or last record in a Recordset object (see Table 3).
Suerte