D
DD
I need to disable the AllowBypassKey for my database. I
referred to Article 826765, excerpt below but typing it
into the immediate window, the code just disappears after
closing the database:
To set the AllowBypassKey property to False, follow these
steps:
Start Access.
Open an Access database project.
In the Database window, point to Macro on the Tools menu,
and then click Visual Basic Editor.
In the Visual Basic Editor, click Immediate Window on the
View menu.
Type the following code or paste the following code in the
Immediate window, and then press
ENTER.CurrentProject.Properties.Add "AllowBypassKey", False
Close the Visual Basic Editor, and then close the Access
database project.
Open the Access database project. Try to bypass the
startup options that are set for the Access database
project by holding down the SHIFT key while you open the
Access database project.
The functionality of the SHIFT key that permits you to
bypass the startup option is disabled. Although you hold
down the SHIFT key to bypass the startup options, the
startup options are executed. You cannot bypass the
startup options.
referred to Article 826765, excerpt below but typing it
into the immediate window, the code just disappears after
closing the database:
To set the AllowBypassKey property to False, follow these
steps:
Start Access.
Open an Access database project.
In the Database window, point to Macro on the Tools menu,
and then click Visual Basic Editor.
In the Visual Basic Editor, click Immediate Window on the
View menu.
Type the following code or paste the following code in the
Immediate window, and then press
ENTER.CurrentProject.Properties.Add "AllowBypassKey", False
Close the Visual Basic Editor, and then close the Access
database project.
Open the Access database project. Try to bypass the
startup options that are set for the Access database
project by holding down the SHIFT key while you open the
Access database project.
The functionality of the SHIFT key that permits you to
bypass the startup option is disabled. Although you hold
down the SHIFT key to bypass the startup options, the
startup options are executed. You cannot bypass the
startup options.