473,378 Members | 1,542 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,378 software developers and data experts.

Problems opening a MS Access Database...

Hi,
I need to know if there is anyway of opening a database only for reading
data, is an Access database, the problem is that if the file is open, the
connection fails, saying that the file is already in use.
Can I open the database in a read only mode, or something like that???

Thanxs in advanced.
Michel
Apr 6 '06 #1
2 1373
Usually, when I am first creating an access database the file is flagged as
open and single use. What I have to do is, close the file, and Open it
again in two instances of Access. Now the file is shareable.

Once you have that you should not fail accessing the file from .Net. As
soon as you attempt to modify the schema though, Access will attempt to mark
it single use again. Lesson learned; don't develop against production copy
of the database until you can take it offline.

If the database is marked single use "exclusive", then only the person
editing the file can work with it until the file is closed.
"Michel" <No**@m.com> wrote in message
news:uN**************@TK2MSFTNGP05.phx.gbl...
Hi,
I need to know if there is anyway of opening a database only for reading
data, is an Access database, the problem is that if the file is open, the
connection fails, saying that the file is already in use.
Can I open the database in a read only mode, or something like that???

Thanxs in advanced.
Michel

Apr 6 '06 #2
Thanks..

"AMDRIT" <am****@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP03.phx.gbl...
Usually, when I am first creating an access database the file is flagged
as open and single use. What I have to do is, close the file, and Open it
again in two instances of Access. Now the file is shareable.

Once you have that you should not fail accessing the file from .Net. As
soon as you attempt to modify the schema though, Access will attempt to
mark it single use again. Lesson learned; don't develop against
production copy of the database until you can take it offline.

If the database is marked single use "exclusive", then only the person
editing the file can work with it until the file is closed.
"Michel" <No**@m.com> wrote in message
news:uN**************@TK2MSFTNGP05.phx.gbl...
Hi,
I need to know if there is anyway of opening a database only for reading
data, is an Access database, the problem is that if the file is open, the
connection fails, saying that the file is already in use.
Can I open the database in a read only mode, or something like that???

Thanxs in advanced.
Michel


Apr 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom D. | last post by:
I just got a new computer. I transfered my web site files over and setup my access database system ODBC driver. I've compared settings on both computers. But when I run my web site code on new...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
7
by: Wayne Aprato | last post by:
I have several Access 2003 mde databases. When I try to open them in Access 2002 I get the following error: "The Visual Basic for Applications project in the database is corrupt." ...
3
by: Mike Wilson | last post by:
Is there a way to open an OLE DB database from within Access? I would like to use the Access GUI with its table and query explorer to examine a database only available through an OLEDB provider...
2
by: Joseph Macari | last post by:
I recently installed Office2003 on my computer. I had imported (not linked) a couple of tables from an Access 2000mdb into an Access 2003mdb. I had composed various queries and forms with these...
2
by: jritacco | last post by:
I have a user that is somehow managing to open multiple copies of a single Access database. We are using Access 2003 and everything I have tried makes it IMPOSSIBLE to open the same database more...
3
by: Suresh P | last post by:
Hi All, I tried to access the mysql database in ODBC using ip address and username/password. It returns, "cannot connect to MySQL server on IP ADDRESS(10060)". This could be related to Firewall...
4
by: bloukopkoggelmander | last post by:
Hello all A strange problem here. We have an Access 2000 database in use. I upgraded one user to Office 2003 SP3. When he now open this database, all dropdown boxes are displaying blank menus....
2
by: Montravont | last post by:
Greetings, I have a program setup for which I would like to pull specific data from an Access database I have created. I know the connection to the database is functioning as I can pull mass...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.