G
Guest
Looking for a place that I can call in a VBA procedure that will return the
current Workgroup Information File name. I tried the DAO object SystemDB,
but it always returns "System.mdw" even after I've joined a differently-named
Workgroup file and restarted the app, etc.
The ultimate functionality I'm looking for is for a startup procedure to
check the current workgroup file, and if it doesn't match what I define as
the correct one, it'll prompt the user to provide the correct path for the
one I want them to use. I figured this'd be a good way to help improve the
database's security/usability without me having access to developer's tools.
The sticky wicket is that I can't figure out how to return the current
workgroup name...
On a related note, how do I set up a function or procedure to run as part of
the OnLoad event (if there is one, or the equivilant) for the database
itself? I'm thinking of both the above function and tossing in the
ubiquitous AllowByPassKey = False dealie.
current Workgroup Information File name. I tried the DAO object SystemDB,
but it always returns "System.mdw" even after I've joined a differently-named
Workgroup file and restarted the app, etc.
The ultimate functionality I'm looking for is for a startup procedure to
check the current workgroup file, and if it doesn't match what I define as
the correct one, it'll prompt the user to provide the correct path for the
one I want them to use. I figured this'd be a good way to help improve the
database's security/usability without me having access to developer's tools.
The sticky wicket is that I can't figure out how to return the current
workgroup name...
On a related note, how do I set up a function or procedure to run as part of
the OnLoad event (if there is one, or the equivilant) for the database
itself? I'm thinking of both the above function and tossing in the
ubiquitous AllowByPassKey = False dealie.