I have a sub that connects to a remote database to download records, could be 10 could be 10,000. I have a progress bar that shows the progress on which record its on, with a text to display a number 5/239. I have a "me.refresh" to keep the lable updating between records.
I have a cancel button on the form that when pressed, should set blnCancel to True. While my other sub is looping through the records, if it sees blnCancel = True then it should " throw new exception("Aborted") ". Maybe theres a better way then how im approaching this.
However. my problem lies in clicking the button. I can't click it. my app is too busy to listen for the click event. What should I do?
I have a cancel button on the form that when pressed, should set blnCancel to True. While my other sub is looping through the records, if it sees blnCancel = True then it should " throw new exception("Aborted") ". Maybe theres a better way then how im approaching this.
However. my problem lies in clicking the button. I can't click it. my app is too busy to listen for the click event. What should I do?