I am struggling to catch the error when a user presses cancel with an Inputbox, so far I have tried to catch if a user presses cancel using
but none of the above seems to work, as the vba just skips out of the sub routine and gets on with the rest of the code. Can anyone show me how to work around this within VBA.
Incidentally, I have had a search for solutions and if from what I understand I could have used
, then I would not be having this issue! but I don't think this is an option in VBA Access. Any input appreciated..
Code:
If Sinput < 1 Or Sinput > 4 Or Sinput = "" Or Sinput = False Or Sinput = vbCancel Then
Incidentally, I have had a search for solutions and if from what I understand I could have used
Code:
application.inputbox
