'Ejemplo stCriteria: [PKey] = 'ABCD'
On Error GoTo error
Dim rs As ADODB.RecordsetSet rs = Me.SubForm.Form.RecordsetClone
rs.Filter = strCriteria
If Not rs.EOF Then
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