How to set a timer and continue processing

Michel1955

New member
Local time
Today, 12:38
Joined
Feb 27, 2014
Messages
6
Hi

I have the following problem:
I have a database where products are scanned using an automatic scanner.
When a product is scanned, a TimerInterval is set to 10 seconds.
When a second product is scanned, this TimerInterval is reset to 10 seconds.
After scanning, a report is printed after 10 seconds.
I made a Progressbar of 10 seconds and it is also set to 10 seconds each time, but I would like to rescan while the Processbar is running
and this does not work.

Thanks in advance
</SPAN></SPAN>
 
put DoEvents command on the progressbar after updating the progress.
 
Hi,
Tx for your reply.
I have used the DoEvents but when I then do the next scanning I get an 2115 Run-time error.
Regards
 
Ok.
After scanning set TimerInterval= 10000

On the Timer event cancel the timer by setting the TimerInterval =0.
 
Show your code, (the whole of it), also mark the line which give you the 2115 Run-time error!
 
Access can not run multiple threads simultaneously. Each section of code must complete before another starts. I'm not sure what happens if you are doing something and a timer event fires. I think it interrupts what you are doing and runs the timer event and then goes back to what you were doing. You will need to test these timers VERY carefully.
 

Users who are viewing this thread

Back
Top Bottom