run a button click event

D

Dan

I want to run the same block of code that runs when I
click my button thats named "Command33" when there is an
error. I really want this to only run it one additional
time so it doesn't get stuck in a loop.
 
M

Mike Painter

Dan said:
I want to run the same block of code that runs when I
click my button thats named "Command33" when there is an
error. I really want this to only run it one additional
time so it doesn't get stuck in a loop.

If it runs once when you click it the first time it will only run once when
you click it the second time.
If not you will probably want to use onerror to trap and possibly offer a
solution to the problem.
 
Top