Hi,
I have a form used for importing records. Once the user selects the file and clicks import, the progress bar starts up and the file gets imported. I also give the user the option to cancel the import at any point before the import is complete.
I can handle this OK if the user clicks the "Cancel Import" button - a messagebox appears and asks if they are sure they want to cancel - if YES, the import is cancelled, if NO, the import resumes.
However, I can't get this to work when the user closes the form by clicking on the 'X'. Can I trap an event in the form unload event and then, based on the answer to a question in a messagebox, prevent the form from unloading?
Al
Al Williams
Anola MB, CANADA