Sorry - personally I find you code a little "to messy", where it is jumping here and there and back again, trigger some of the build in events like the Current event.
You need to find out where you code trigger the Edit command/statement, then it can't be right that the form start up in Edit...