When I click on a command button, I want to 1) call a user-defined function, then 2) Run a procedure.
The function displays text on an unbound textbox. The procedure creates a 20 second timer.
I've tried to embed the procedure call in the function, but then nothing else on the form can be invoked until the timer has run out.
Same problem with creating a procedure for the command button that first runs the function then runs the procedure. Nothing else on the form can be invoked until the timer has run out.
I need to find a way with one OnClick to run the function, then the timer procedure, with my being able to -- after the procedure has begun but before it has finished -- press a command button that stops the timer procedure in mid-process.
I have successfully clicked the command button that stops the timer, but only when I simply start the timer by itself.
So how do I initiate both the function & the timer procedure with one OnClick without linking the two togther such that I can't initiate the stop-timer action?
Thanks very much in advance!
The function displays text on an unbound textbox. The procedure creates a 20 second timer.
I've tried to embed the procedure call in the function, but then nothing else on the form can be invoked until the timer has run out.
Same problem with creating a procedure for the command button that first runs the function then runs the procedure. Nothing else on the form can be invoked until the timer has run out.
I need to find a way with one OnClick to run the function, then the timer procedure, with my being able to -- after the procedure has begun but before it has finished -- press a command button that stops the timer procedure in mid-process.
I have successfully clicked the command button that stops the timer, but only when I simply start the timer by itself.
So how do I initiate both the function & the timer procedure with one OnClick without linking the two togther such that I can't initiate the stop-timer action?
Thanks very much in advance!