但也有另外一种方法,我以前经常使用. 与大家分享一下
With Me.RecordsetClone
.FindFirst "[字段]=" & Me!搜索的值
If Not .NoMatch Then
If Me.Dirty Then
Me.Dirty = False
End If
Me.Bookmark = .Bookmark
End If
End With
如果是通过 recordset 变量,则用下面方法:
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[字段]=" & Me!搜索的值
If Not rs.NoMatch Then
If Me.Dirty Then
Me.Dirty = False
End If
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing