When securing FE/BE databases, do you secure the BE first then secure the FE?
What is the best procedure for this?
![]() |
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 |
-
Securing Database (A2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Securing Database (A2000)
- This topic has 16 replies, 6 voices, and was last updated 21 years, 10 months ago.
AuthorTopicViewing 1 reply threadAuthorReplies-
WSMarkD
AskWoody LoungerJuly 13, 2003 at 9:37 am #693286It makes no difference in which order you secure the individual .MDB files used by your application. Even if you’ve been using Access security for a while, the simplest method to secure a new or existing db is to use the A2K User-Level Security Wizard. The wizard will create a new workgroup (.MDW) file (if not using an existing one) and do a lot of the work for you. You’ll likely still have to set permissions on individual objects in the db based on the application’s requirements. If you use an .MDE for FE, you cannot secure an .MDE, you’d secure the .MDB source db before creating the .MDE.
HTH
-
WSHansV
AskWoody LoungerJuly 13, 2003 at 8:23 pm #693287As MarkD has already mentioned, it doesn’t really matter whether you secure the back end or front end first. You will have to re-link the tables in the front end after changing permissions on the tables in the back end. The Security FAQ available from ACC2000: Microsoft Access Security FAQ Available in Download Center provides detailed information.
-
WSpatt
AskWoody Lounger -
WSClausParkhoi
AskWoody LoungerJuly 24, 2003 at 7:05 pm #696515Why bother securing the FE?
Securing the data in BE is the important thing in my opinion. I see little point in securing the FE provided you release it as an mde.
Then modules and forms are safe. Tables are linked to the BE, hence no danger there.
Use AllowBypassKey the proper way and users cannot get into the dbs by using the shift key.
So, why would you secure the FE? -
WBell
AskWoody_MVPJuly 24, 2003 at 8:36 pm #696564 -
WSClausParkhoi
AskWoody Lounger -
WBell
AskWoody_MVPJuly 25, 2003 at 4:32 pm #696847In this case we are using the same form for two different user groups – some users cannot see data on a special tab, while others with greater priviledges can see that tab and edit the data. Otherwise we would have to have two different forms for different users, or we would have to have two different front-ends.
-
-
-
WSMarkD
AskWoody LoungerJuly 25, 2003 at 7:51 pm #696904If the front end is not secured, it is simple to reset the database’s Shift Bypass property. Example:
Public Sub SetShiftBypassDB(ByRef strDbName As String, ByVal bAllowBypass As Boolean)
On Error GoTo Err_Handler‘ strDbName = full path to other db
‘ bAllowBypass = True: enables Shift Bypass Key
‘ bAllowBypass = False: disables Shift Bypass KeyDim ws As DAO.Workspace
Dim db As DAO.Database
Dim prop As DAO.Property
Dim strPropName As String
Dim strMsg As StringSet ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase(strDbName)
strPropName = “AllowBypassKey”
db.Properties(strPropName) = bAllowBypassstrMsg = “Allow Shift Bypass property for ” & strDbName & ” set to: ” & vbCrLf & vbCrLf & _
db.Properties(strPropName)
MsgBox strMsg, vbInformation, “SHIFT BYPASS PROPERTY”Exit_Sub:
If Not db Is Nothing Then db.Close
Set ws = Nothing
Set db = Nothing
Set prop = Nothing
Exit Sub
Err_Handler:
Select Case Err.Number
Case 3270 ‘ Property not found – create and append
Set prop = db.CreateProperty(strPropName, dbBoolean, bAllowBypass, True)
db.Properties.Append prop
Resume
Case 3033 ‘ Permission denied
strMsg = “Permission to access the database was denied. ” & _
“Shift Bypass property not reset.”
MsgBox strMsg, vbExclamation, “PERMISSION DENIED”
Resume Exit_Sub
Case Else
strMsg = “Error No ” & Err.Number & “: ” & Err.Description
Beep
MsgBox strMsg, vbExclamation, “SET SHIFT BYPASS DB ERROR”
Resume Exit_Sub
End SelectEnd Sub
Example use:
SetShiftBypassDB “C:AccessNW_S.mde”, True
If you create two .MDE’s based on same FE, one secured, one unsecured, the code above will successfully enable/disable the Shift Bypass key for unsecured .MDE. However, attempt to run same sub for secured .MDE will result in error msg like the one illustrated. This was true even if logged in as member of secured .MDE’s workgroup file (but not as member of Admins group). It’s often noted that when setting Allow Bypass property in code, do not forget to set 4th argument (DDL) for CreateProperty method to True (as shown above) so that only Administrators can change property. In testing this, even if DDL was not specified (default is False), a secured db’s non-Admins user was not able to change property setting unless explicitly granted dbSecWriteDef permission.
In addition, as noted by Wendell B., I find it necessary to secure the FE because often forms or controls are enabled/disabled, visible/not visible, etc based on which group account the CurrentUser belongs to. Some forms have “Admin” functions only available for Administrators. So I prefer to secure both FE & BE.
-
WSClausParkhoi
AskWoody Lounger -
WSClausParkhoi
AskWoody Lounger -
WScharlotte
AskWoody LoungerJuly 27, 2003 at 2:52 pm #697134My company does this with a standard set of users /groups in the workgroup file for full administrative access, regular user, and read-only user. There are a couple of additional levels as well. This works for us because of the nature of our application, but in your case it does sound more complicated.
-
WSClausParkhoi
AskWoody Lounger -
WScharlotte
AskWoody LoungerJuly 28, 2003 at 11:37 am #697311That is correct. The intent is to prevent users who do not have necessary permissions from editing data, and to restrict the actions other users can take. Both the front and back ends are secured. Our applications are used on drilling rigs and in drilling company offices all over the world.
-
WBell
AskWoody_MVPJuly 27, 2003 at 3:12 pm #697141Isn’t it possible to define groups that don’t change, and then set permissions based on groups rather than users? That way you could deploy a more or less standard .mdw file with your application, and have the local admin set up actual users, or as Charlotte suggest, have a set of default standard users. It is possible to actually embed a user admin scheme in the front-end as well, but that does involve a fair bit of effort.
Bottom line – if you don’t need to secure the front-end, then don’t, but be aware that you will need to use the secured .mdw file when you open the front-end, or you won’t be able to see the back-end tables.
-
WSClausParkhoi
AskWoody LoungerJuly 28, 2003 at 10:55 am #697306Wendell,
Permissions are set on groups (not users). The point is that a workgroup information file cannot be standard and unique to the customer at the same time. The name, org, and workgroup ID specified on creation of the workgroup information file is what makes it unique. If it is not unique but standard for the application then data belonging to one customer could easily be displayed/used by another customer (running the same application) using his own workgroup information file -
WBell
AskWoody_MVPJuly 28, 2003 at 3:00 pm #697336It sounds to me like you’re on the right track – if you are concerned about one customer getting at another customer’s data somehow, then you do need to have a unique workgroup file. That can get to be a royal pain if you have hundreds of customers, but for a few tens it is probably managable. You will want to keep a copy of each customers’ workgroup file in case you need to do maintenance or disaster recovery.
-
-
-
-
Viewing 1 reply thread -

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
-
Xfinity home internet
by
MrJimPhelps
27 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
2 hours, 27 minutes ago -
Debian 12.11 released
by
Alex5723
10 hours, 53 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
14 hours, 35 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
57 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
11 hours, 3 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
1 day, 7 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
21 hours, 55 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day, 10 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 2 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
9 hours, 59 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
2 hours, 50 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 19 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 15 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
1 day, 5 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
2 days, 9 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
17 hours, 33 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
6 hours, 12 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
2 days, 12 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
2 days, 12 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
2 days ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 20 hours ago -
0Patch, where to begin
by
cassel23
2 days, 14 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
3 days, 10 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 21 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 18 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
3 days, 9 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
11 hours, 48 minutes ago -
Installer program can’t read my registry
by
Peobody
3 hours, 42 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
3 days, 7 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.