Detecting Running Applications

P

PeterM

I'm running Access 2003 with an Access 2000 format
database. I have a button on a form which calls an
application (such as MS Word). I need to program the
button to check and see if the application (Word) is
currently running and if it is, simply switch to it. If
it's not running I need to start it.

How can I check for applications currently running on my
desktop?
 
A

Albert D. Kallal

I also have some sample word merge code that launches word if need be..but
runs the existing copy.

Try running my word merge code example.

http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html

After you run it..and try it...take a look at the code. There is about 3 or
4 places where I first check for word running..and if not launch it.

No API code is needed to do this..

My sample code also have fixes for focus problems when switching from
ms-access to word.
 

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