I dunno. The way I read it, the second click occurs on the modal form, so it is not a double click, it is 2 clicks in rapid succession. Maybe that's not correct.
so the mouse will not be over this text box
Giving focus to a control puts the insertion pointer in the control; it has no effect on where the mouse pointer is.
I'd try putting break points in all the relevant events you had before you added all this other stuff and step through all of that. Then using it normally and with these rapid clicks (not sure you need the double click event on the command button at all), see if it's really executing code as you describe. You might find that something else is causing the behaviour.
If that doesn't reveal anything, consider a module level variable that the first click sets. If it has a value, exit the click event. When the modal form closes, reset the variable. However, if the first button click opens a form that is truly modal then a second click should get ignored since the first form should not be able to initiate events until the modal form is closed. That's why I think you need to step through everything. Of course, if my interpretation is wrong (as I pointed out it may be) then it can't be a double click event doing this if you didn't have one to start with.
Another option is for you to post a zipped copy of your db.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.