473,503 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

open mode : adModeShareDenyNone

9 New Member
Hi All,

We use “adModeShareDenyNone” open mode to allow others users to connect to database at the same time.
But when I open database through one client on computer, other user(computer) can not connect to database. It gets an error saying “file already in use”.
What can be the reason?

Note :: I have distributed .exe (front end) to different users.

## some part of code (visual basic)
'declare connection
Dim ConDB As ADODB.Connection
'declare SQL command
Dim myCommand As ADODB.Command
'declare record set to store output of SQL command
Dim myRecordSet As ADODB.Recordset

'To catch run-time errors
'On Error Resume Next
'Setting connection object
Set ConDB = New ADODB.Connection
'creating new record set
Set myRecordSet = CreateObject("ADODB.Recordset")
'setting cursor type
myRecordSet.CursorType = adOpenStatic
'setting connection provider engine
ConDB.Provider = "Microsoft.Jet.OLEDB.4.0"

'clearing errors
Err.Clear
'let each user connect to database
ConDB.Mode = 16 'adModeShareDenyNone
'Opening connection
ConDB.Open CONNECTION_STRING <- declared constant in module
Dec 5 '08 #1
1 4901
FishVal
2,653 Recognized Expert Specialist
Hello, Anane.

Access doesn't support all ADO features.
Try different connection modes or open it in default adModeUnknown.

Regards,
Fish
Dec 7 '08 #2

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

Similar topics

1
1692
by: Eric Pederson | last post by:
WryPyY's- I've come across this file operation in others' code and have not seen any documentation for it: the use of "t" in the mode of file opening, such as: f1=open(somefile, 'at')...
6
8979
by: Mateo | last post by:
Hi! I tried to open page in new window with window.open(...) method. open() method supports fullscreeen mode, but I would like to open new maximized window with tiltle bar only.... Any idea...
0
1893
by: Mark Phillips | last post by:
Hello, I am having a problem in which a file can get stuck open when a thread that is attempting to write to it gets aborted (ThreadAbortedException occurs). The log file gets stuck open until...
5
3931
by: ehui928 | last post by:
The following program is used to open a file in mode both read and append, but it has a problem that the file can't be opened. #include <iostream> #include <fstream> #include <cstdlib> ...
1
2538
by: Sorin Schwimmer | last post by:
Hi, I tried for the first time a Tix Tree, so, if my question is naive, I apologize upfront. The following code: <code> from Tix import * r=Tk()
7
2414
by: freegnu | last post by:
hi all, i dont dont whats the difference, and the different bettwen flags and mode
2
1850
by: tubby | last post by:
Does a py script written to open and read binary files on Windows affect files on a Linux or Mac machine in a negative way? My concern is portability and safety. I want scripts written within...
6
9264
by: =?Utf-8?B?TUNI?= | last post by:
I try to open a log file that is logging infomation by another process: StreamReader sr = File.OpenText(filePath); I got the exception message: The process cannot access the file...
6
5967
by: sebastian.noack | last post by:
Hi, is there a way to or at least a reason why I can not use tarfile to create a gzip or bunzip2 compressed archive in the memory? You might might wanna answer "use StringIO" but this isn't...
0
7194
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
7267
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,...
0
7316
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...
1
6976
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...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
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,...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.