I have a form that I am using to update a table with information. Here is the code behind my update button:
Private Sub cmdUpdate_Click()
On Error GoTo Err_cmdUpdate_Click
Dim stDocName As String
Dim var As String
stDocName = "qryUpdateManager_billing_fact"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "qryUpdateManager_project"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me.Requery
Exit_cmdUpdate_Click:
Exit Sub
Err_cmdUpdate_Click:
MsgBox Err.Description
Resume Exit_cmdUpdate_Click
End Sub
I need to do a requery to refresh my form but it keeps taking me back to the first record and I need it to remember which record I am on after the requery and to take me there so I can continue to update records. Can anyone tell me how do do this? I am using access 2000 if it matters.
Thanks in advance.
Private Sub cmdUpdate_Click()
On Error GoTo Err_cmdUpdate_Click
Dim stDocName As String
Dim var As String
stDocName = "qryUpdateManager_billing_fact"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "qryUpdateManager_project"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me.Requery
Exit_cmdUpdate_Click:
Exit Sub
Err_cmdUpdate_Click:
MsgBox Err.Description
Resume Exit_cmdUpdate_Click
End Sub
I need to do a requery to refresh my form but it keeps taking me back to the first record and I need it to remember which record I am on after the requery and to take me there so I can continue to update records. Can anyone tell me how do do this? I am using access 2000 if it matters.
Thanks in advance.