Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/04/2010, 11:48
Avatar de lokoman
lokoman
 
Fecha de Ingreso: septiembre-2009
Mensajes: 502
Antigüedad: 14 años, 7 meses
Puntos: 47
Respuesta: Consulta sobre Record set

Prueba a ver si funciona...
...
...
...
rst.Open

For f = 1 To MSFlexGrid3.Rows - 2

IF RST!FECHA_VENCIMIENTO='"" THEN MSFlexGrid3.TextMatrix(f, 6)="NO DATA"
IF RST!FECHA_INGRESO='"" THEN MSFlexGrid3.TextMatrix(f, 5)="NO DATA"

rst.AddNew Array("codigo", "descripcion", "cantidad_pendiente", "cantidad_despachada", "lote", "fecha_ingreso", "fecha_vencimiento"), _
Array(MSFlexGrid3.TextMatrix(f, 0), MSFlexGrid3.TextMatrix(f, 1), MSFlexGrid3.TextMatrix(f, 2), _
MSFlexGrid3.TextMatrix(f, 3), MSFlexGrid3.TextMatrix(f, 4), MSFlexGrid3.TextMatrix(f, 5), MSFlexGrid3.TextMatrix(f, 6))
Next