Command Button won't work while in loop 
Author Message
 Command Button won't work while in loop

Question for the Group--

I have a loop that runs to search a file, looping through each record.
 While inside the loop, I want the user to be able to click a cancel
command button to halt the search.  The button won't accept the click
event (or any other event is appears) while the loop is running.  Is
there a way around this?

Thanks in advance.

Steven Stultz



Mon, 19 Jul 2004 00:46:15 GMT  
 Command Button won't work while in loop

released on 30 Jan 2002 08:46:15 -0800 bearing the following
fruit:

Quote:
>Question for the Group--

>I have a loop that runs to search a file, looping through each record.
> While inside the loop, I want the user to be able to click a cancel
>command button to halt the search.  The button won't accept the click
>event (or any other event is appears) while the loop is running.  Is
>there a way around this?

DoEvents


Mon, 19 Jul 2004 00:58:44 GMT  
 Command Button won't work while in loop

Quote:
> I have a loop that runs to search a file, looping through each record.
>  While inside the loop, I want the user to be able to click a cancel
> command button to halt the search.  The button won't accept the click
> event (or any other event is appears) while the loop is running.

Include the DoEvents statement in your loop to release control to the
operating system.

Eq.

--

Equinox Tetrachloride
Atheist, nihilist, logophile and polymath.
www.cl4.org - www.insecurities.org



Mon, 19 Jul 2004 03:04:16 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to exit a long loop (buttons don't work)

2. Command button won't make use of module driving MS Project from MS Access 2000

3. Command Button won't show

4. Command button won't stay down ??

5. Command button won't go flat

6. Command button won't stay down??

7. Command Button Won't Disapeer when using unload statement

8. My undo and delete button won't work

9. Search and Replace Macro commands won't work from VB5 Application

10. click event won't work in cancel button

11. option button control array - won't work

12. simple ftp app developed on win98 won't work on win nt

 

 
Powered by phpBB® Forum Software