Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to stop a process?

Status
Not open for further replies.

mmogul

IS-IT--Management
Dec 1, 2003
218
US
I have a process that loads about 100 spreadsheets into a database. The user enters a few parameters prior to initiating the load. If they start the process and realize they made an error with one of the parameters, they would like to stop the upload process.

How do you set this up where the user would click a button to stop the process, get a confirming message, and then cancel or continue the process?

Thanks.
 
What about the Ctrl-Pause key combination ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
You will probably want to look into transactions & rollback if you interrupt an upload.

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 
assuming the process is a series of VBA statements (e.g. TransferSpreadsheet(args)

Then a simple DoEvents between calls would interrupt the process sufficiently to allow <crl>-<Break> to at least stop the code.



MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top