J
John J.
I use following code in my main form's beforeUpdate event for the not so
advanced users.
If msgbox("Do you wish to update this record?", vbYesNo) = vbNo Then
Cancel = True
Me.Undo
msgbox "The change has been discarded", vbOKOnly
End If
It works for the main form but not for the subform. I could add the same
code to the sub form too, but then the user may get the update question
twice. Would it somehow be possible to combine those 2 pieces of code into 1
so that a message only pops up once, when the user leaves the record on the
main form?
Thank you.
John
advanced users.
If msgbox("Do you wish to update this record?", vbYesNo) = vbNo Then
Cancel = True
Me.Undo
msgbox "The change has been discarded", vbOKOnly
End If
It works for the main form but not for the subform. I could add the same
code to the sub form too, but then the user may get the update question
twice. Would it somehow be possible to combine those 2 pieces of code into 1
so that a message only pops up once, when the user leaves the record on the
main form?
Thank you.
John