B
bkdraper via AccessMonster.com
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.
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.