J
Jani
I'm trying to save a record and than stay on that same record. Below is my
code which saves the record but moves to a new record instead of staying on
the record which was changed or added. The vbNo works OK. Help would be much
appreciated. Thanks, Jani
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim iAns As Integer
iAns = MsgBox("Do you want to add this record or accept the changes? After
adding or making a change to this record, check the %'s from this month to
previous month. For %'s which are +/- 20% a comment should be entered.",
vbYesNo)
If iAns = vbNo Then
Me.Undo
Cancel = True
If iAns = vbYes Then
DoCmd.GoToRecord , , acLast
End If
End If
End Sub
code which saves the record but moves to a new record instead of staying on
the record which was changed or added. The vbNo works OK. Help would be much
appreciated. Thanks, Jani
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim iAns As Integer
iAns = MsgBox("Do you want to add this record or accept the changes? After
adding or making a change to this record, check the %'s from this month to
previous month. For %'s which are +/- 20% a comment should be entered.",
vbYesNo)
If iAns = vbNo Then
Me.Undo
Cancel = True
If iAns = vbYes Then
DoCmd.GoToRecord , , acLast
End If
End If
End Sub