Form Disable

cable

Access For My Sins
Local time
Today, 10:48
Joined
Mar 11, 2002
Messages
226
I've got a simple form that starts a set of subs, but the from still responds to the user even if the process is going.

Whats the best way to stop this?
 
What's the situation? How are the subs started, from what event?

Are you sure they aren't already run and concluded?
 
Mile-O-Phile said:
What's the situation? How are the subs started, from what event?

Are you sure they aren't already run and concluded?

There is one button that does a quick bit of validation and then runs a sub (called RunSubs), this sub then runs a set of subs in turn.

I've tried disabling just this button but that doesn't work as it has focus.

I've tried making the RunSubs a fucntion and then returning a bool, ie hoping to get the button code wait until it recives a result...but it still allows me to press it again, press the quit button and change the entry values.

No it hasn't finished as it takes about 5-10mins and shows a status, and a ends with a msgbox prompt.

I basically want to eat all of the forms on click events while the process is running...and I could set a global var to show its running and use that...but that seems far to complicated.
 

Users who are viewing this thread

Back
Top Bottom