Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Method 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can you do to go back to the same record after using the Refresh Method in a Form working with Access??

Am I supposed to use the Bookmark Property?? How can I do it??
 
Try this:

Private Sub Form_Activate()
On Error GoTo ErrActivate:

Dim bmk As Variant
bmk = Me.Bookmark
Me.Requery
Me.Refresh
Me.Bookmark = bmk

ErrActivate:
If Err.Number = 3021 Or Err.Number = 3159 Then
Exit Sub
Else
MsgBox Err.Description
Exit Sub
End If

End Sub [sig]<p>Mike Rohde<br><a href=mailto:rohdem@marshallengines.com>rohdem@marshallengines.com</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top