Thanks to all, it now appears to work with the code below.
I originally had 3 and not "3", but I had a problem. For some reason with "3" it still opened the popup form just fine so I had left it.
I changed the revert line to Me.Undo and that seems to have done the trick. I think this was a case...