473,748 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to know if instance is already running

In Access 2000, Win NT, Citrix, we have each user opening the front end mdb
in their own folder, and linnking to the back end. I've noticed that a user
can get more than one instance open at a time if they are not careful.

Is there a way to have an instance of Access check to see whether there is
another one already open for this user, and if so, simply to maximize the
window of the already running instance?

Thanks
Mike Thomas
Nov 12 '05 #1
3 4592
I don't know if this will work in Terminal Services or Citrix, but here is
an example you can try.

http://www.mvps.org/access/api/api0041.htm

--
Wayne Morgan
Microsoft Access MVP
"Mike Thomas" <mi**@ease.co m> wrote in message
news:iT******** ************@ne wssvr28.news.pr odigy.com...
In Access 2000, Win NT, Citrix, we have each user opening the front end mdb in their own folder, and linnking to the back end. I've noticed that a user can get more than one instance open at a time if they are not careful.

Is there a way to have an instance of Access check to see whether there is
another one already open for this user, and if so, simply to maximize the
window of the already running instance?

Thanks
Mike Thomas

Nov 12 '05 #2
Try looking here...

http://www.mvps.org/access/api/api0007.htm

Mike Storr
www.veraccess.com
"Mike Thomas" <mi**@ease.co m> wrote in message
news:iT******** ************@ne wssvr28.news.pr odigy.com...
In Access 2000, Win NT, Citrix, we have each user opening the front end mdb in their own folder, and linnking to the back end. I've noticed that a user can get more than one instance open at a time if they are not careful.

Is there a way to have an instance of Access check to see whether there is
another one already open for this user, and if so, simply to maximize the
window of the already running instance?

Thanks
Mike Thomas

Nov 12 '05 #3
Many thanks,
The commonsense approach of opening the frontend exclusively was I had not
thought of.

Mike Thomas
"Wayne Morgan" <co************ *************** @hotmail.com> wrote in message
news:dF******** **********@news svr33.news.prod igy.com...
I don't know if this will work in Terminal Services or Citrix, but here is
an example you can try.

http://www.mvps.org/access/api/api0041.htm

--
Wayne Morgan
Microsoft Access MVP
"Mike Thomas" <mi**@ease.co m> wrote in message
news:iT******** ************@ne wssvr28.news.pr odigy.com...
In Access 2000, Win NT, Citrix, we have each user opening the front end

mdb
in their own folder, and linnking to the back end. I've noticed that a

user
can get more than one instance open at a time if they are not careful.

Is there a way to have an instance of Access check to see whether there is another one already open for this user, and if so, simply to maximize the window of the already running instance?

Thanks
Mike Thomas


Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1253
by: Walter G | last post by:
I have a VB.Net application that can be executed with parameters. If parameters are received, the I execute a function that will open a form within the application. On top of that, I'd like to detect if there's another instance of this application already running, so I don't have to start another one, but I need to execute that function that opens a form (on the executing instance), and here's where I'm stuck. This is the code:...
2
2019
by: johnmann56 | last post by:
Hello. I have written a simple image viewer application using C# .NET. It only needs to display one image at a time. When a different program, in C, running on the same machine, does a "system(myfile.a2d2)" call, it automatically starts my image viewer application (using file type association). a2d2 is the image file format, my own. If the C program does the system call again for a different image, I find that it starts a new instance of...
3
1447
by: Shawn | last post by:
how do i prevent the second instance of my app from being instanced when one is already running?
6
4669
by: Dmitry Karneyev | last post by:
Hi! I guess this question have been asked a lot of times, but please be tolerant and if you have any ideas share it. The question is: how to make availibale only one instance of application and if second one is loaded it must be close and give focus to first one. Thanks for any advice! Dmitry
9
1507
by: T Cordon | last post by:
How to determine if another instance of the application is running so that ir doesn't run multiple instances? Thanks
5
2256
by: Adam Nowotny | last post by:
I want my application to be able to load most components it uses at user logon (f.e. by running "prog.exe /startup") and create a NotifyIcon to show up in tray. Now when i load the prog.exe second time (without parameter) it should detect that an instance is already running and tell it to show the main form of the application (i need this to reduce application startup time). Then the second instance should exit. So far i've made a...
6
5520
by: perera | last post by:
I want to create a MFC program *.exe. My reguirement is at a time only one instance can be run. In Other on mutile instnces can be run at a time
3
7195
by: Mark Jerde | last post by:
VS 2005. When I google "CSharp single instance form" the returned pages usually use a Mutex or the VB.NET runtime library. http://en.csharp-online.net/Application_Architecture_in_Windows_Forms_2.0%E2%80%94Single-Instance_Detection_and_Management http://www.codeproject.com/csharp/SingleInstanceApplication.asp http://blogs.msdn.com/onoj/archive/2004/06/04/148532.aspx "Program.cs" below seems to work fine. A feature is it restores a...
2
4270
by: pamela fluente | last post by:
I have an application running. A file type is registered with this application. When the user click on a file of such type a new instance of the application is loaded with command line (file name). I want to shut done this new instance an to notify the instance which is already running, by passing the command line to it (so that the file can be open by the application already runnning). Here is my code, how do I notify the running...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.