ayuda con buscar
Publicado por yochy (5 intervenciones) el 29/07/2008 22:20:47
hola necesito otra vez
para buscar un registro
tengo este codigo
Private Sub Command7_Click()
buscar = InputBox("INGRESE FECHA A BUSCAR")
If buscar = "" Then
Exit Sub
End If
Data1.Recordset.FindFirst "Fecha=" & "" & buscar & ""
If Data1.Recordset.NoMatch Then
MsgBox ("NO SE ENCONTRO EL REGISTRO")
Data1.Recordset.MoveLast
End If
End Sub
pero me sale todo bien solo hasta por ejemplo cuando me sale "no se encontro el registro"
y me aparece mal en la ultima parte cuando hago depurar para ver la parte q esta mal:
Data1.Recordset.MoveLast
ojala me pudieran ayudar
xao
para buscar un registro
tengo este codigo
Private Sub Command7_Click()
buscar = InputBox("INGRESE FECHA A BUSCAR")
If buscar = "" Then
Exit Sub
End If
Data1.Recordset.FindFirst "Fecha=" & "" & buscar & ""
If Data1.Recordset.NoMatch Then
MsgBox ("NO SE ENCONTRO EL REGISTRO")
Data1.Recordset.MoveLast
End If
End Sub
pero me sale todo bien solo hasta por ejemplo cuando me sale "no se encontro el registro"
y me aparece mal en la ultima parte cuando hago depurar para ver la parte q esta mal:
Data1.Recordset.MoveLast
ojala me pudieran ayudar
xao
Valora esta pregunta


0