Web Images News Groups Books Scholar Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Stop access database being opened a second time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Diarmuid  
View profile  
 More options Dec 10 2004, 5:11 pm
Newsgroups: microsoft.public.access
From: "Diarmuid" <diarm...@deadspam.com>
Date: Fri, 10 Dec 2004 17:11:51 -0000
Local: Fri, Dec 10 2004 5:11 pm
Subject: Stop access database being opened a second time
Hi
    If a user already has my frontend opened on their pc, I want a message
to appear when they open it a second time. How can I check for this?
Thanks
Diarmuid

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Conrad  
View profile  
 More options Dec 10 2004, 5:30 pm
Newsgroups: microsoft.public.access
From: "Jeff Conrad" <je...@ernstbrothers.com>
Date: Fri, 10 Dec 2004 09:30:08 -0800
Local: Fri, Dec 10 2004 5:30 pm
Subject: Re: Stop access database being opened a second time
Hi,

The following link should be just what you are looking for:

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

--
Jeff Conrad
Access Junkie
Bend, Oregon

"Diarmuid" <diarm...@deadspam.com> wrote in message news:%23GHcNut3EHA.208@TK2MSFTNGP12.phx.gbl...
> Hi
>     If a user already has my frontend opened on their pc, I want a message
> to appear when they open it a second time. How can I check for this?
> Thanks
> Diarmuid


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Labosh  
View profile  
 More options Dec 10 2004, 5:54 pm
Newsgroups: microsoft.public.access
From: "Mike Labosh" <mlab...@hotmail.com>
Date: Fri, 10 Dec 2004 12:54:22 -0500
Local: Fri, Dec 10 2004 5:54 pm
Subject: Re: Stop access database being opened a second time

>    If a user already has my frontend opened on their pc, I want a message
> to appear when they open it a second time. How can I check for this?

A Mutex Question!  These are always fun!

"Mutex" stands for "Mutually Exclusive".  In the WIN32 API SDK, a Mutex is a
system-level resource that can only be held by one process.  To accomplish
what you want, you can have your startup code create a mutex with a specific
hard-coded name, and hold the Mutex's handle in a public global variable.
Then your shutdown code passes that handle back to windows to release it.
Then, when a user starts a second instance of your application, the new call
to CreateMutex() fails, and you can MsgBox the user and quit.  The only
catch is that if you're in the VBA debugger and "reset" your code, you lose
the mutex handle and will be unable to release it.  Lookup these two
functions in MSDN:

CreateMutex()
ReleaseMutex()
--
Peace & happy computing,

Mike Labosh, MCSD
"I have no choice but to believe in free will."


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Toews  
View profile  
 More options Dec 11 2004, 10:59 pm
Newsgroups: microsoft.public.access
From: Tony Toews <tto...@telusplanet.net>
Date: Sat, 11 Dec 2004 15:59:43 -0700
Local: Sat, Dec 11 2004 10:59 pm
Subject: Re: Stop access database being opened a second time

"Mike Labosh" <mlab...@hotmail.com> wrote:
>A Mutex Question!  These are always fun!

>"Mutex" stands for "Mutually Exclusive".  In the WIN32 API SDK, a Mutex is a
>system-level resource that can only be held by one process.  

I've *never* heard of these before.  Thanks, these could be quite
handy for some utilities I'll be working on.

Tony
--
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Toews  
View profile  
 More options Dec 11 2004, 10:59 pm
Newsgroups: microsoft.public.access
From: Tony Toews <tto...@telusplanet.net>
Date: Sat, 11 Dec 2004 15:59:29 -0700
Local: Sat, Dec 11 2004 10:59 pm
Subject: Re: Stop access database being opened a second time

"Mike Labosh" <mlab...@hotmail.com> wrote:
>A Mutex Question!  These are always fun!

>"Mutex" stands for "Mutually Exclusive".  In the WIN32 API SDK, a Mutex is a
>system-level resource that can only be held by one process.  

I've heard of these before.  Thanks, these could be quite handy for
some utilities I'll be working on.

Tony
--
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diarmuid  
View profile  
 More options Dec 13 2004, 10:51 am
Newsgroups: microsoft.public.access
From: "Diarmuid" <diarm...@deadspam.com>
Date: Mon, 13 Dec 2004 10:51:29 -0000
Local: Mon, Dec 13 2004 10:51 am
Subject: Re: Stop access database being opened a second time
I can't see the answer you got? Whats up with that?
Diarmuid

"Tony Toews" <tto...@telusplanet.net> wrote in message

news:htumr01ha13d2fmebc7bbqdaim4afeugit@4ax.com...
> "Mike Labosh" <mlab...@hotmail.com> wrote:

>>A Mutex Question!  These are always fun!

>>"Mutex" stands for "Mutually Exclusive".  In the WIN32 API SDK, a Mutex is
>>a
>>system-level resource that can only be held by one process.

> I've heard of these before.  Thanks, these could be quite handy for
> some utilities I'll be working on.

> Tony
> --
> Tony Toews, Microsoft Access MVP
>   Please respond only in the newsgroups so that others can
> read the entire thread of messages.
>   Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google