I have come accross this problem before but solved it by making the Win2000 box log on automatically with a user
in the Admins group. The problem being that my Access application, complete with VBA code modules, will not
function properly on a computer unless a member of the Administrators group is logged on.
A mere power user gets the message (as soon as any VBA code starts to execute) that the backend database is read only.
It isn’t.
What does this mean?
![]() |
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 |
-
Database read only for non Admins? (Office/Access 2000 SP1A)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Database read only for non Admins? (Office/Access 2000 SP1A)
- This topic has 14 replies, 4 voices, and was last updated 21 years ago.
AuthorTopicWSdavidhit
AskWoody LoungerApril 29, 2004 at 11:05 pm #404329Viewing 3 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerApril 30, 2004 at 4:12 am #821729It sounds like your permissions aren’t adequate for ordinary users, but is the problem Access permissions or Windows/network permissions? In other words, which administrators group are you talking about? I’ve seen problems when an application was installed by an administrator but it wasn’t made available for all users on that machine. Could that be the issue?
Oh, one other thing I discovered the hard way: If you maintain an ADO connection to the backend database from a form, and then you create a new connection and try to modify things, you can get that kind of error even if your *are* an administrator and are the only one touching the database … and even if your first connection is read-only.
If you only get the message from the code but a power user can edit the tables directly, then your code is the problem. What are you doing that requires additional permissions? Are you attaching or reattaching tables, setting values in the backend or what? Are you working with recordsets in code when you receive this error? If so, you can pass the username and password in a connection string for ADO and use that connection to do anything that requires admin permissions. In DAO, you can open a secured workspace and open the recordsets using a database object opened in that workspace so that you can carry out operations that require admin permissions. We use this approach in a number of places in our applications because some of our users have read-only permissions on the application, but there still needs to be stuff going on behind the scenes, like changing the apptitle.
-
WSdavidhit
AskWoody LoungerApril 30, 2004 at 4:37 am #821743I’m talking about the Windows/Network permissions – I am pretty much 100% sure I’ve got the Access User level security under control.
Taking up your first question: what do you mean by “making the application available for all users on the machine”?
The folder which contains both the back end mdb file and the front end as well is not password protected or unavailable for browsing for a power user.
My application is quite simple and clean in principle, and uses only ADO. I’m eschewing DAO to keep things neater.
It’s basically adding and deleting records from tables using ADO by interacting with forms. The connection strings have full authentication (username, pasword)
My first action is to click on a button that runs this event procedure:
Private Sub NewSaleRecord()Dim cnnCurrent As ADODB.Connection
Dim rstSales As New ADODB.RecordsetSet cnnCurrent = CurrentProject.Connection
rstSales.CursorType = adOpenKeyset
rstSales.LockType = adLockOptimistic
rstSales.Open “Sales”, cnnCurrent, , , adCmdTableWith rstSales
‘ at this point – next line – the code stops running and I get the message that the database is read only.
.AddNew![OrderDate] = Date
![OrderTime] = Time
.UpdateintSID = ![SalesID]
End With
rstSales.Close
Set rstSales = Nothing
End SubAs commented above, as soon as I try to add a new record to the table I get the read only message
if any Windows user other than an administrator is logged onto the workstation. -
WScharlotte
AskWoody Lounger -
WSdavidhit
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSdazednconfused
AskWoody LoungerMay 4, 2004 at 1:57 pm #823110I recently set up a database in its own network folder for the first time, while every user could open the front end, when I split the database it wouldn’t work. The end solution was to reset the permissions in the folder. For whatever reason the users had all the required permissions for the folder, but they were not applied to new files in the folder, once the network guy had set permissions for the individual files and the folder we were away.
This was a Windows 2000 network.
-
WSdazednconfused
AskWoody LoungerMay 4, 2004 at 1:57 pm #823111I recently set up a database in its own network folder for the first time, while every user could open the front end, when I split the database it wouldn’t work. The end solution was to reset the permissions in the folder. For whatever reason the users had all the required permissions for the folder, but they were not applied to new files in the folder, once the network guy had set permissions for the individual files and the folder we were away.
This was a Windows 2000 network.
-
WScharlotte
AskWoody Lounger
-
-
WSdavidhit
AskWoody Lounger
-
-
WScharlotte
AskWoody Lounger
-
-
WSdavidhit
AskWoody LoungerApril 30, 2004 at 4:37 am #821744I’m talking about the Windows/Network permissions – I am pretty much 100% sure I’ve got the Access User level security under control.
Taking up your first question: what do you mean by “making the application available for all users on the machine”?
The folder which contains both the back end mdb file and the front end as well is not password protected or unavailable for browsing for a power user.
My application is quite simple and clean in principle, and uses only ADO. I’m eschewing DAO to keep things neater.
It’s basically adding and deleting records from tables using ADO by interacting with forms. The connection strings have full authentication (username, pasword)
My first action is to click on a button that runs this event procedure:
Private Sub NewSaleRecord()Dim cnnCurrent As ADODB.Connection
Dim rstSales As New ADODB.RecordsetSet cnnCurrent = CurrentProject.Connection
rstSales.CursorType = adOpenKeyset
rstSales.LockType = adLockOptimistic
rstSales.Open “Sales”, cnnCurrent, , , adCmdTableWith rstSales
‘ at this point – next line – the code stops running and I get the message that the database is read only.
.AddNew![OrderDate] = Date
![OrderTime] = Time
.UpdateintSID = ![SalesID]
End With
rstSales.Close
Set rstSales = Nothing
End SubAs commented above, as soon as I try to add a new record to the table I get the read only message
if any Windows user other than an administrator is logged onto the workstation.
-
-
WScharlotte
AskWoody LoungerApril 30, 2004 at 4:12 am #821730It sounds like your permissions aren’t adequate for ordinary users, but is the problem Access permissions or Windows/network permissions? In other words, which administrators group are you talking about? I’ve seen problems when an application was installed by an administrator but it wasn’t made available for all users on that machine. Could that be the issue?
Oh, one other thing I discovered the hard way: If you maintain an ADO connection to the backend database from a form, and then you create a new connection and try to modify things, you can get that kind of error even if your *are* an administrator and are the only one touching the database … and even if your first connection is read-only.
If you only get the message from the code but a power user can edit the tables directly, then your code is the problem. What are you doing that requires additional permissions? Are you attaching or reattaching tables, setting values in the backend or what? Are you working with recordsets in code when you receive this error? If so, you can pass the username and password in a connection string for ADO and use that connection to do anything that requires admin permissions. In DAO, you can open a secured workspace and open the recordsets using a database object opened in that workspace so that you can carry out operations that require admin permissions. We use this approach in a number of places in our applications because some of our users have read-only permissions on the application, but there still needs to be stuff going on behind the scenes, like changing the apptitle.
-
WSSimonC
AskWoody LoungerApril 30, 2004 at 6:34 am #821757I think it might be a file permissions problem.
When opening an Access database, if no other user currently has that database open, Access creates a .ldb file in the same folder as the mdb/mde file. If permission to create files in this folder resides with Administrators but not PowerUsers, it might explain why the latter can’t be the first to open the database.
Once this .ldb file has been created, the need to file creation rights disappears as all subsequent database users merely need rights to modify this file.
Of course, when the last person using the database closes it, the .ldb file will be deleted and thus the database becomes readonly again to all but the Administrators.
-
WSSimonC
AskWoody LoungerApril 30, 2004 at 6:34 am #821758I think it might be a file permissions problem.
When opening an Access database, if no other user currently has that database open, Access creates a .ldb file in the same folder as the mdb/mde file. If permission to create files in this folder resides with Administrators but not PowerUsers, it might explain why the latter can’t be the first to open the database.
Once this .ldb file has been created, the need to file creation rights disappears as all subsequent database users merely need rights to modify this file.
Of course, when the last person using the database closes it, the .ldb file will be deleted and thus the database becomes readonly again to all but the Administrators.
Viewing 3 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
-
Mozilla Firefox Security Updates! Released late 17th May 2025
by
Alex5723
3 hours, 39 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
32 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
7 hours, 37 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
1 hour, 3 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
17 hours, 27 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
7 hours, 52 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
20 hours, 7 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
12 hours, 23 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
8 hours, 4 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
14 hours, 19 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 1 hour ago -
Does windows update component store “self heal”?
by
Mike Cross
15 hours, 56 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 19 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
3 hours, 31 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
7 hours, 11 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 22 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 22 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 10 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 6 hours ago -
0Patch, where to begin
by
cassel23
2 days ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 20 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 7 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 4 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 19 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 days, 6 hours ago -
Installer program can’t read my registry
by
Peobody
7 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 17 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
3 days ago -
False error message from eMClient
by
WSSebastian42
3 days, 15 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.