J
jubiiab via AccessMonster.com
Hi,
I have seen some examples on this site but I can’t figure it out. I have a
refresh button on my form and this is the code:
Private Sub refresh_Click()
On Error GoTo Err_refresh_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Forms!frm_Machine!MachineNr.SetFocus
DoCmd.Requery ""
Exit_refresh_Click:
Exit Sub
Err_refresh_Click:
MsgBox Err.Description
Resume Exit_refresh_Click
End Sub
When I press the refresh button on my form it goes back to the first record.
I want to stay on the current record. Can some one please help me with
rewriting the above code please???
I have seen some examples on this site but I can’t figure it out. I have a
refresh button on my form and this is the code:
Private Sub refresh_Click()
On Error GoTo Err_refresh_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Forms!frm_Machine!MachineNr.SetFocus
DoCmd.Requery ""
Exit_refresh_Click:
Exit Sub
Err_refresh_Click:
MsgBox Err.Description
Resume Exit_refresh_Click
End Sub
When I press the refresh button on my form it goes back to the first record.
I want to stay on the current record. Can some one please help me with
rewriting the above code please???