Running more than one module in simultaneous

G

Guest

1. Is it possible to run more than one module in simultaneous?
My question is to increase the speed and or generate a clock to see the
seconds running while the modules are processing.

Thanks
José
 
P

Peter R. Fletcher

You presumably understand that regular desktop computers can't
actually do more than one thing at once - they just switch between
tasks very fast. If you set up a timer event on a Form, to display
elapsed time in a control on the Form, and call DoEvents at reasonably
frequent intervals from your Module code, you will be able to see the
clock increment while the code is running. This will, however,
somewhat _increase_ the total time that the module code takes to run,
because of the extra processing involved. You can only run more than
one process thread _literally_ at the same time, and reduce overall
elapsed time, if your processor(s), motherboard, OS, and application
all support multiprocessing. Access certainly doesn't support
multiprocessing, and I don't think that any MS User OS does (yet).
Without such support, two independent threads or processes running
"simultaneously" will inevitably take _at_ _least_ as long to finish
as they would if run consecutively, and usually somewhat longer.

1. Is it possible to run more than one module in simultaneous?
My question is to increase the speed and or generate a clock to see the
seconds running while the modules are processing.

Thanks
José


Please respond to the Newsgroup, so that others may benefit from the exchange.
Peter R. Fletcher
 
G

Graham R Seach

José,

It's not possible to run two or more procedures simulaneously.

You can, however, generate a clock by updating a Label control with the
current time, by using a form's Timer event.

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top