Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/04/2004, 07:25
perezgladys28
 
Fecha de Ingreso: abril-2004
Ubicación: caracas
Mensajes: 58
Antigüedad: 20 años, 9 meses
Puntos: 0
SI ES EN VISUAL BASIC:

///FUNCION BUSCAR

Function SeekField(Tabla As Recordset, indice As String, campo As Variant) As Boolean
Tabla.Index = indice
Tabla.Seek "=", campo
If Not Tabla.NoMatch Then
SeekField = True
Else
SeekField = False
End If
End Function


//LLAMADA A LA FUNCION PARA BUSCAR LA FECHA

Fecha = Format(CDate(fec1.Text), "dd/mm/yyyy") //le das formato a la fecha.

If SeekField(tabla, "PrimaryKey", fecha) Then // es por q existe

//las instrucciones