!WARNING! I am using Access in German so you will notice some strange words written in the code 
Hi Guys,
So I have a button with the following vba code which runs when the button has been clicked on:
Private Sub Umschaltfläche15_Click()
TempVars.Add "bestnr", InputBox("Bestellnummer Eingeben")
DoCmd.OpenForm "retour"
End Sub
This works great but when I want to cancel/close the input box which appears I get a message that the script has ended etc and if I want to close or debug etc, I would like to remove this pop up from appearing.
I tried setwarnings to false, that didnt help.
Any thoughts? Thanks!

Hi Guys,
So I have a button with the following vba code which runs when the button has been clicked on:
Private Sub Umschaltfläche15_Click()
TempVars.Add "bestnr", InputBox("Bestellnummer Eingeben")
DoCmd.OpenForm "retour"
End Sub
This works great but when I want to cancel/close the input box which appears I get a message that the script has ended etc and if I want to close or debug etc, I would like to remove this pop up from appearing.
I tried setwarnings to false, that didnt help.
Any thoughts? Thanks!
