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
-
Best Courses to Study in Dubai with High Job Prospects (Awaiting moderation)
by
SonaliSharmaBR
37 minutes ago -
Small desktops
by
Susan Bradley
1 hour, 40 minutes ago -
Totally disable Bitlocker
by
CWBillow
4 hours, 59 minutes ago -
Totally disable Bitlocker
by
CWBillow
6 hours, 38 minutes ago -
Windows 11 ad from Campaign Manager in Windows 10 (Awaiting moderation)
by
Jim McKenna
10 hours, 7 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
18 hours, 46 minutes ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
20 hours, 38 minutes ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
23 hours, 47 minutes ago -
Mystical Desktop
by
CWBillow
1 day ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
5 hours, 18 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
14 hours, 11 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
1 day, 15 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
1 day, 18 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
1 day, 16 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 8 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
2 days, 3 hours ago -
Location, location, location
by
Susan Bradley
17 hours, 59 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
2 days, 4 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 day, 19 hours ago -
June 2025 Office non-Security Updates
by
PKCano
2 days, 15 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
18 hours, 19 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
2 days, 15 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
3 days, 2 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
3 days, 10 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
3 days, 10 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
3 days ago -
Firefox 139
by
Charlie
2 days, 17 hours ago -
Who knows what?
by
Will Fastie
1 day, 19 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
3 days, 11 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.