I need to  check if a MS Access app is up and have been told I can do this using WinAPI's - How?

Posted on 2012-08-15
Medium Priority
Last Modified: 2012-08-17
In an earlier question I was told that I can check if a MS Access app is up and running using WinAPI's. Can anyone tell me how this works or a viable alternative?
Question by:Rob4077
  • 3
  • 2
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38296055

Author Comment

ID: 38296146
Hi capricorn1. Doesn't that just tell me if MS Access is running. How do I use it to tell if a particular mdb is running, e.g. myApp.accdb?
LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 2000 total points
ID: 38296310

Author Comment

ID: 38303823
Thanks for the link. Looks like I could make it worm but if I run the code as suggested then the second instance of the app will launch momentarily, flicker on the task bar as it checks to see if the mutex already exists and then closes when it realises it does. In my case, I suspect I should get the other application to check each loop if the mutex exists and only launch again of it's not already running. Does that sound reasonable?

Author Comment

ID: 38307249
Thanks for the code. Turned out to be easy once I started.

I put a loop in the parent app that looks for the mutex. If it finds it then it does nothing but if it doesn't find the mutex it launches the slave app. When the slave app starts it creates the Mutex. Perfect!

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question