I want to call MyPublicFunction from a Control Before Update event,
MyPublicFunction()
If MyGlobalBoolean True then
MsgBox “Some message.”
Me.undo
End If
Of course, MyPublicFunction doesn’t know the “Me” in Me.Undo.
How can I pass the "Me" to MyPublicFunction so it knows what to undo?
Of course, a Private Function will work but it would have to be repeated many times and so would be tricky if changes are needed in the future.
Thank you very much
Steve C
MyPublicFunction()
If MyGlobalBoolean True then
MsgBox “Some message.”
Me.undo
End If
Of course, MyPublicFunction doesn’t know the “Me” in Me.Undo.
How can I pass the "Me" to MyPublicFunction so it knows what to undo?
Of course, a Private Function will work but it would have to be repeated many times and so would be tricky if changes are needed in the future.
Thank you very much
Steve C
Last edited: