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
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
    LVL 119

    Expert Comment

    by:Rey Obrero

    Author Comment

    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 119

    Accepted Solution


    Author Comment

    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

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    This isn't a frequent question on EE. I must have seen it three or four times (among several thousand questions). However, I use this trick quite often, most frequently as a delayed Current event. A form does not expose it's calculation dependenc…
    In the article entitled Working with Objects – Part 1 (, you learned the basics of working with objects, properties, methods, and events. In Work…
    Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now