I have a split db using access 2002. The FE's are mde running ny various machines on my network. My BE is MDB. On each machine the user starts an .exe file that i wrote in vb6 that checks the Server version # of the mde FE and then copies it to the local machine if it needs to be updated. This all works fine and dandy and is fairly simple.
If the mde is current it simpy opens my mde and closes my .exe updater.
The problem is that this will allow you to open more than one copy of the mde file. Most of my users use the quick launch in the windows taskbar so they are commonly double clicking which almost always will open two copies of my mde. I have tried to explain to my users that you only need to click the quick launch icons once till i'm blue in the face! (These are people who have been using computers every day for 2-3 years and still don't know when to click once or twice).
What i would like to do is detect if my mde file (or MSACCESS.EXE) is already running so i can keep it from being run again. I have found a few leads in the forum but nothing solid.
Any suggestions will be a great help! below is the code i am using ot start me mde file.
ShellExecute Me.hwnd, vbNullString, "c:\Green Enterprises\GreenDB.mde", vbNullString, "C:\", SW_SHOWNORMAL
If the mde is current it simpy opens my mde and closes my .exe updater.
The problem is that this will allow you to open more than one copy of the mde file. Most of my users use the quick launch in the windows taskbar so they are commonly double clicking which almost always will open two copies of my mde. I have tried to explain to my users that you only need to click the quick launch icons once till i'm blue in the face! (These are people who have been using computers every day for 2-3 years and still don't know when to click once or twice).
What i would like to do is detect if my mde file (or MSACCESS.EXE) is already running so i can keep it from being run again. I have found a few leads in the forum but nothing solid.
Any suggestions will be a great help! below is the code i am using ot start me mde file.
ShellExecute Me.hwnd, vbNullString, "c:\Green Enterprises\GreenDB.mde", vbNullString, "C:\", SW_SHOWNORMAL