|
|
|
date: Tue, 22 Jul 2008 23:45:29 GMT,
group: microsoft.public.access.modulesdaovba
back
Is there a way to tell if a certain Access application or instance is open?
Hello all,
Is there a way of determining if a cerain Access app is open?
I have a number of Access apps I've written for an office and at any given
time any number of those app's could be open at the same time by various
users doing their daily work.
So now I'm building a generic front-end updater to update all of them based
on parameters sent to it (like 'ok updater, this users front-end x is out of
date so update it, that users front-end y is out of date so update it, new
version of front-end z is available so push to everybody - kinda like my own
Access SMS) but in doing this, my updater needs to know if user x has front-
end x open and if so, close it before running the update (on the users local
machine, not across a network).
Problem is I can't figure out if Access DB or Access instance x is open or
not. I tried GetObject(,"Access.Application) .name, and I tried the DBEngine.
Workspaces collection but they only give me the first instance of Access
thats open whether I have one or a dozen Access app's open at once, and thats
where I ran out of ideas short of using Windows API calls to iterate through
open windows (didn't wanna do that cuz it seems unclean somehow).
So here I am asking the group, how do I find out which Access DB's or
instances (or whatever the correct terminology is) are open?
Thanks,
Kelly D.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200807/1
date: Tue, 22 Jul 2008 23:45:29 GMT
author: bkdraper via AccessMonster.com u7849@uwe
Re: Is there a way to tell if a certain Access application or instance is open?
"bkdraper via AccessMonster.com" <u7849@uwe> wrote in message
news:878cf3b81052d@uwe...
> Hello all,
> Is there a way of determining if a cerain Access app is open?
>
> I have a number of Access apps I've written for an office and at any given
> time any number of those app's could be open at the same time by various
> users doing their daily work.
> So now I'm building a generic front-end updater to update all of them
> based
> on parameters sent to it (like 'ok updater, this users front-end x is out
> of
> date so update it, that users front-end y is out of date so update it, new
> version of front-end z is available so push to everybody - kinda like my
> own
> Access SMS) but in doing this, my updater needs to know if user x has
> front-
> end x open and if so, close it before running the update (on the users
> local
> machine, not across a network).
> Problem is I can't figure out if Access DB or Access instance x is open or
> not. I tried GetObject(,"Access.Application) .name, and I tried the
> DBEngine.
> Workspaces collection but they only give me the first instance of Access
> thats open whether I have one or a dozen Access app's open at once, and
> thats
> where I ran out of ideas short of using Windows API calls to iterate
> through
> open windows (didn't wanna do that cuz it seems unclean somehow).
>
> So here I am asking the group, how do I find out which Access DB's or
> instances (or whatever the correct terminology is) are open?
>
> Thanks,
> Kelly D.
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200807/1
>
If \\machine_name\folder_name\access_file.ldb exists, then
\\machine_name\folder_name\access_file.mdb is open. When the app closes, the
ldb file is deleted.
HTH
date: Wed, 23 Jul 2008 01:13:28 +0100
author: Stuart McCall
Re: Is there a way to tell if a certain Access application or instance is open?
"Stuart McCall" wrote in message
news:g65t3h$3qu$1$8300dec7@news.demon.co.uk...
> "bkdraper via AccessMonster.com" <u7849@uwe> wrote in message
> news:878cf3b81052d@uwe...
>> Hello all,
>> Is there a way of determining if a cerain Access app is open?
>>
>> I have a number of Access apps I've written for an office and at any
>> given
>> time any number of those app's could be open at the same time by various
>> users doing their daily work.
>> So now I'm building a generic front-end updater to update all of them
>> based
>> on parameters sent to it (like 'ok updater, this users front-end x is out
>> of
>> date so update it, that users front-end y is out of date so update it,
>> new
>> version of front-end z is available so push to everybody - kinda like my
>> own
>> Access SMS) but in doing this, my updater needs to know if user x has
>> front-
>> end x open and if so, close it before running the update (on the users
>> local
>> machine, not across a network).
>> Problem is I can't figure out if Access DB or Access instance x is open
>> or
>> not. I tried GetObject(,"Access.Application) .name, and I tried the
>> DBEngine.
>> Workspaces collection but they only give me the first instance of Access
>> thats open whether I have one or a dozen Access app's open at once, and
>> thats
>> where I ran out of ideas short of using Windows API calls to iterate
>> through
>> open windows (didn't wanna do that cuz it seems unclean somehow).
>>
>> So here I am asking the group, how do I find out which Access DB's or
>> instances (or whatever the correct terminology is) are open?
>>
>> Thanks,
>> Kelly D.
>>
>> --
>> Message posted via AccessMonster.com
>> http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200807/1
>>
>
> If \\machine_name\folder_name\access_file.ldb exists, then
> \\machine_name\folder_name\access_file.mdb is open. When the app closes,
> the ldb file is deleted.
>
> HTH
Errata: That last sentence should have read:
When all instances of the app are closed, the ldb file is deleted
date: Wed, 23 Jul 2008 01:44:54 +0100
author: Stuart McCall
|
|