How do I disable users from being able to access the db container via holding the shift key when a database is started?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Disabling Shift key at startup
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Disabling Shift key at startup
- This topic has 10 replies, 5 voices, and was last updated 24 years, 1 month ago.
Viewing 2 reply threadsAuthorReplies-
WScharlotte
AskWoody Lounger -
WSAndyAinscow
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSkiwi44
AskWoody Lounger -
WSDouglas Martin
AskWoody LoungerMarch 2, 2001 at 5:56 pm #517125 -
WScharlotte
AskWoody Lounger
-
-
-
-
WSjp2558
AskWoody Lounger-
WSAndyAinscow
AskWoody LoungerMarch 2, 2001 at 1:22 pm #517080Try this, I have this code running from a button in another database to ‘lock’ the target database
Private Const szDatabaseToControl = “xxx.mde”
Private Sub Command1_Click()
Dim db As Database, ws As Workspace
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase(szDatabaseToControl)ChangeProperty db, “AllowBypassKey”, dbBoolean, False
End Sub
Function ChangeProperty(dbs As Database, strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer
Dim prp As Property
Const conPropNotFoundError = 3270On Error GoTo Change_Err
dbs.Properties(strPropName) = varPropValue
ChangeProperty = TrueChange_Bye:
Exit FunctionChange_Err:
If Err = conPropNotFoundError Then ‘ Property not found.
Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)
dbs.Properties.Append prp
Resume Next
Else
‘ Unknown error.
ChangeProperty = False
Resume Change_Bye
End If
End Function
WSjp2558
AskWoody Lounger-
WScharlotte
AskWoody Lounger
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Looking for personal finance software with budgeting capabilities (Awaiting moderation)
by
cellsee6
4 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
8 hours, 24 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
12 hours, 46 minutes ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
21 hours, 21 minutes ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
6 hours, 47 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
5 hours, 44 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
16 hours, 24 minutes ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
2 days, 8 hours ago -
50 years and counting
by
Susan Bradley
4 hours, 59 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 14 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
2 days, 19 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
2 days, 19 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
2 days, 19 hours ago -
OneNote and MS Word 365
by
CWBillow
2 days, 21 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
2 days, 21 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
2 days, 21 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
12 hours, 54 minutes ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
3 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
3 days, 9 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
3 days, 18 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
3 days, 6 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
2 days, 6 hours ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
4 days, 3 hours ago -
Apple backports fixes
by
Susan Bradley
3 days, 9 hours ago -
Win 11 24H2 will not install
by
Michael1950
2 days, 7 hours ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
1 day ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
2 days, 15 hours ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
1 day, 3 hours ago -
Get back ” Open With” in context menus
by
CWBillow
4 days, 17 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
3 days, 9 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.