I have a query that takes a bit to process.

I want to have a message box pop up if the query has been running for more than 20 seconds that asks if they still want to continue processing.

When the message box pops up, if they click yes, the query continues to process. If they click no, then the query quits.

Does anyone have any clue how to do this. Any sort of idea would be great. Thanks in advance.