X
Xcelsoft
I have an Access 2k database that has a WorkGroup
Information File (Users and Permissions) used to open
it. I want to set the "AllowByPassKey" property to false
to prevent users from bypassing the startup menu and
options. I have the code to do this but the problem I am
having is opening the database from another database to
set or unset the "AllowByPassKey" property using VB. I
don't know how to specify the WorkGroup Information File
using the OpenDatabase command. This is necessary
because at times Admins will need to have the
AllowByPassKey set to True to bypass the startup options
for maintenance. The Shortcut to open the database with
the WorkGroup Information File is:
"C:\MyDBFolder\MYDatabase.mdb" /WRKGRP "C:\MyDBFolder\Secu
red.mdw"
In the VB function to set the AllowBypassKey Property I
need to open the database using the following:
Dim dbs
Set dbs = OpenDatabase("c:\MyDBFolder\MYDatabase.mdb")
Without the WorkGroup Information File specified, the
code errors out.
Any help will be appreciated.
Thanks
Information File (Users and Permissions) used to open
it. I want to set the "AllowByPassKey" property to false
to prevent users from bypassing the startup menu and
options. I have the code to do this but the problem I am
having is opening the database from another database to
set or unset the "AllowByPassKey" property using VB. I
don't know how to specify the WorkGroup Information File
using the OpenDatabase command. This is necessary
because at times Admins will need to have the
AllowByPassKey set to True to bypass the startup options
for maintenance. The Shortcut to open the database with
the WorkGroup Information File is:
"C:\MyDBFolder\MYDatabase.mdb" /WRKGRP "C:\MyDBFolder\Secu
red.mdw"
In the VB function to set the AllowBypassKey Property I
need to open the database using the following:
Dim dbs
Set dbs = OpenDatabase("c:\MyDBFolder\MYDatabase.mdb")
Without the WorkGroup Information File specified, the
code errors out.
Any help will be appreciated.
Thanks