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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to break a long macro/vba RUNNING process...

Status
Not open for further replies.

THEGREEK

Technical User
Aug 17, 2000
51
CA
I was just wondering if I could kill a process run from another button from a form by having the ability to press a cancel button.

I tried this, but while the process is running via a macro/vba the mouse functionality within the application is idle/disabled therefore even if i try and click anywhere else it won't let me.

anyone have any idea what i'm talkin about? :)

Thanks for your anticipated help in advance,

THEGREEK
 
i know that one, but ctl+brk keys breaks the process but also opens up the the code in design view...showing where it broke, i defenitely don't want that. Might their be an alternative to haveing maybe an out clause sort to speak when running a long process in access?

Thanx in advance,
THEGREEK
 
Oh, ic

You didn't say you knew that one ! :)

In your code you need a Doevents statement. This allows your routine to check for any button clicks on the form.

Hope this is what you are looking for.


Bill Paton
william.paton@ubsw.com

Check out
 
yes, thanks that works perfectly :)

THEGREEK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top