473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem accessing data from open database

I have two MS Access 2003 databases on the same server but in separate shared folders.
I’m attempting to setup up a repetitive process that will access all fields and records from a table in MS Access database “B” in order make a table in MS Access database “A”. The user that will perform this process has write access to database “A” but read-only access to database “B”. Security is set at the folder level - there is no security setup at the database level. Both databases are set to “Shared” (not “Exclusive”).
If someone else has database “B” open and my user runs a make table query in database “A” that references a link to the table in database “B”, an error occurs stating that the user “Could not use database “B”; file already in use” (error code 3045). Is there a way to accomplish this without providing my user write access to database “B”?
Aug 18 '10 #1

✓ answered by Stewart Ross

Sorry but there isn't a way to open the database in shared mode if a user has it open read-only that I know of.

The problem is that if a user's rights are read-only then Access cannot create a lock file (a .ldb file) for that database. This leads to the read-only user being treated as having exclusive access to the database, preventing others from opening the database in shared mode.

You will need to provide read-write access to resolve this. If you don't want your currently read-only user to have access to the tables and so on you'll need to separate the front-end (user-oriented) parts of the database from the back-end tables and ensure in the new front-end that you remove the default access to the database window and the standard menus which allow users to open the database window if it is closed. This is not entirely foolproof, but it can be acceptably secure for most purposes.

-Stewart

2 2303
Stewart Ross
2,545 Expert Mod 2GB
Sorry but there isn't a way to open the database in shared mode if a user has it open read-only that I know of.

The problem is that if a user's rights are read-only then Access cannot create a lock file (a .ldb file) for that database. This leads to the read-only user being treated as having exclusive access to the database, preventing others from opening the database in shared mode.

You will need to provide read-write access to resolve this. If you don't want your currently read-only user to have access to the tables and so on you'll need to separate the front-end (user-oriented) parts of the database from the back-end tables and ensure in the new front-end that you remove the default access to the database window and the standard menus which allow users to open the database window if it is closed. This is not entirely foolproof, but it can be acceptably secure for most purposes.

-Stewart
Aug 18 '10 #2
Thanks Stewart. We are going to move the table (and a few others) to a SQL database that can be accessed by both MS Access databases.
Aug 19 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dariusz | last post by:
Below is part of a code I have for a database. While the database table is created correctly (if it doesn't exist), and data is input correctly into the database when executed, I have a problem...
0
by: vginders | last post by:
Hello, We have a legacy application which relies on an Access 97 database (upgrading is nog an option atm). As we are setting up a new server (Windows 2003), we started experiencing problems...
3
by: Suhas Vengilat | last post by:
Hi, I am facing a problem accessing SQL Server using WindowsAuthentication. One Sharepoint application development team need a webpart to access one SQL Server Database using a service account...
2
by: Jeff | last post by:
Hi - I have an ASP.NET web page accessing a SQL database. It works fine on the web, and I'm trying to get it to also work in debug mode in the IDE. The "on the web" page and my SQL database...
12
by: zMisc | last post by:
I have a problem selecting records with \ in any values. For example: SELECT * FROM ADDRESS WHERE STREET = "A\" will give an error: If I replace \ with \\ then it works. Eg.
2
by: Mark Brown | last post by:
I'm trying to access an Oracle database vb.net. I found several examples. I tried following each one, but I get the same error no matter what I try. I don't really understand what the error means...
25
by: bseakgano | last post by:
I have developed a intranet . Using HTML , SQL and ASP . I have created a table with SQL is just fine . And design a form is just looks fine to me . But when I try to insert Data into the SQL I just...
1
by: robin1983 | last post by:
Hi to all, i m newer to this site and fresher in Ajax world. Actually i get a problem while accessing data from Database. I have a combo box in my pages. Actually i want to access data from the...
1
by: jameswambura | last post by:
how to read abitmap image from access table and display in visual basic interface
3
by: djsuson | last post by:
I'm trying to set up an inheritance tree that also uses templates. This is an attempt to simplify some previous code that was filled with redundancies. I'm working with g++ 3.4.6. The code is split...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.