J
Jeff via AccessMonster.com
I tried running the following code as suggested in this form but I get a
object or method not supported message. I can't seem to get the the form to
return to the record it was last on before the requery. When I requery it
returns to the first record.
Dim varID As Variant
If Me.Dirty Then
Me.Dirty = False
End If
varID = Me.ID
Me.Requery
'Find the record again
With Me.RecordsetClone
If IsNull(varID) Then
If Not Me.NewRecord Then
RunCommand acCmdRecordsGoToNew
End If
Else
.FindFirst "ID = " & varID
If .NoMatch Then
MsgBox "Not found."
Else
Me.Bookmark = .Bookmark
End If
End If
End With
object or method not supported message. I can't seem to get the the form to
return to the record it was last on before the requery. When I requery it
returns to the first record.
Dim varID As Variant
If Me.Dirty Then
Me.Dirty = False
End If
varID = Me.ID
Me.Requery
'Find the record again
With Me.RecordsetClone
If IsNull(varID) Then
If Not Me.NewRecord Then
RunCommand acCmdRecordsGoToNew
End If
Else
.FindFirst "ID = " & varID
If .NoMatch Then
MsgBox "Not found."
Else
Me.Bookmark = .Bookmark
End If
End If
End With