473,762 Members | 8,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1400
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******** ******@TK2MSFTN GP05.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******** ******@TK2MSFTN GP03.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******** ******@TK2MSFTN GP05.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
3579
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 machine I get... Microsoft OLE DB Provider for ODBC Drivers (0x80004005) Not a valid password.
19
3143
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 (nested), three list views, one tree control with up to 30,000 nodes, maybe 15 comboboxes (half of which have a large recordset as rowsource), 20 or so buttons and around 30 text boxes (not to mention the images, labels, etc and around 1000 lines...
7
3465
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." Interestingly I can open the mdb files of the same 2003 databases in Access 2002 without problems. To my understanding the file formats of 2002 and 2003 are the same and this problem shouldn't exist. And why is it only the mde files that are giving the...
3
3083
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 interface. I have seen several references on how to open an OLE DB database through VBA/ADO code but I wouldn't know how to go from there to actually have the database available in the Access GUI...
2
1748
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 imported tables...saved the 2003mdb numerous times without incident. I was working on a form with this imported data (not linked) and all of a sudden the data just disapeared (??)....i.e., the data in the two tables was empty!!! No problem;...
2
4692
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 than once. This database runs code on the execution to look into a master database for new changes and will update the user's database accordingly. I think I have narrowed it down to when the user is being updated, she runs into this issue. I...
3
5232
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 on the server. Is there anyway to access MySQL database using ODBC without opening port 3306?
4
2125
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. When I open the same database in Office 2002, the dropdown boxes have populated menus. Now I have converted the database to 2002 format and it still works fine when opening in 2002, but still have the same problem when opening in 2003. Has anyone...
2
1863
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 data to populate a list box. Where I am having trouble is this. I would like to select a name from said list box and have the database return only information based on the name selected. Once I pull this information I would like to then place each...
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5268
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.