B
Brad Pears
I am using the inputbox function to get a REQUIRED entry from the user. I
want them to be forced to enter something in here - or be able to press
cancel if they get there accidentally...
So, I have code that will force them to make an entry, but how do I check to
see if cancel was pressed to get them out of the loop?? The following code
forces them to make an entry regardless of the fact that they may have
pressed the cancel button...
Here is the code...
strReason = ""
Do While IsNull(strReason) Or strReason = ""
strReason = InputBox(strMessage, strTitle)
Loop
Thanks,
Brad
want them to be forced to enter something in here - or be able to press
cancel if they get there accidentally...
So, I have code that will force them to make an entry, but how do I check to
see if cancel was pressed to get them out of the loop?? The following code
forces them to make an entry regardless of the fact that they may have
pressed the cancel button...
Here is the code...
strReason = ""
Do While IsNull(strReason) Or strReason = ""
strReason = InputBox(strMessage, strTitle)
Loop
Thanks,
Brad