'Ejemplo stCriteria: [PKey] = 'ABCD'
On Error GoTo error
Dim rs As DAO.Recordset
Set rs = Me.SubForm.Form.RecordsetClone
rs.FindFirst strCriteria
If rs.NoMatch Then
'Ningún valor encontrado
Else
Me.Subform.Form.Bookmark = rs.Bookmark
End If
rs.Close
Set rs = Nothing
Exit Sub
error:
MsgBox Err.Description
End Sub
No hay comentarios:
Publicar un comentario