receiving error message "the database has been placed in a state by user .... on machine ......that prevents it from being opened or locked"
i need to have multiple users being able to access the database at the same time
9 7996
receiving error message "the database has been placed in a state by user .... on machine ......that prevents it from being opened or locked"
i need to have multiple users being able to access the database at the same time
It sounds as though a user has it opened for exclusive access. Are people likely to be using it directly through MS Access, or only through your application (assuming there is an application)?
I believe you can set an option in Access that determines whether the default action is to open databases exclusively, or shared. If you're using VB (if so, what version?), then you use a parameter when you open the database to specify whether it is for exclusive use.
It sounds as though a user has it opened for exclusive access. Are people likely to be using it directly through MS Access, or only through your application (assuming there is an application)?
THE APPLICATION IS OPENED FROM THE DESKTOP USING A SHORTCUT CREATED FROM AN ACCESS MACRO WHICH DOES OPENFORM OPERATION
I believe you can set an option in Access that determines whether the default action is to open databases exclusively, or shared. If you're using VB (if so, what version?), then you use a parameter when you open the database to specify whether it is for exclusive use.
VB 6.3 HOWEVER MY FILES ARE OPENED BY THE FORM
THE APPLICATION IS OPENED FROM THE DESKTOP USING A SHORTCUT CREATED FROM AN ACCESS MACRO WHICH DOES OPENFORM OPERATION
...
VB 6.3 HOWEVER MY FILES ARE OPENED BY THE FORM
Ok, now you've lost me completely. If you are using an Access macro to open an Access form, then where does VB6 come into it?
Ahah! Now I get it. This is VBA version 6.3, built into Access. Now it's starting to make a little sense, at least.
I think you need to check your Access settings ( Tools | Options | Advanced) for that database to see whether it is being opened for exclusive use by default.
Since this appears to be largely an Access problem rather than VB, I'm going to move this to the Access forum - we should find more help there.
DEFAULT OPEN MODE = SHARED
DEFAULT RECORD LOCKING = NO LOCKS
OPEN DATABASE USING RECORD LEVEL LOCKING IS CHECKED
DEFAULT FILE FORMAT = ACCESS 2000
Ok, now you've lost me completely. If you are using an Access macro to open an Access form, then where does VB6 come into it?
Ahah! Now I get it. This is VBA version 6.3, built into Access. Now it's starting to make a little sense, at least.
I think you need to check your Access settings (Tools | Options | Advanced) for that database to see whether it is being opened for exclusive use by default.
MMcCarthy 14,534
Recognized Expert Moderator MVP
DEFAULT OPEN MODE = SHARED
DEFAULT RECORD LOCKING = NO LOCKS
OPEN DATABASE USING RECORD LEVEL LOCKING IS CHECKED
DEFAULT FILE FORMAT = ACCESS 2000
These settings should allow the database to be opened in multiple locations (although I would recommend change Default Record Locking to Edited Record).
Back to your problem. Do you know which machine has it open at the moment. Is there any problem with that machine? Have you tried to close the database on that machine?
Mary
ADezii 8,834
Recognized Expert Expert
receiving error message "the database has been placed in a state by user .... on machine ......that prevents it from being opened or locked"
i need to have multiple users being able to access the database at the same time
__1 You will get this exact message when you have a Database Opened and an Object contained within it, say a Form, is in Design View. If you now try to open another Instance of this Database you'll get "the database has been placed in a state by user .... on machine ......that prevents it from being opened or locked"
__2 If that is not the problem, close the Database and see if you have a .ldb file with exactly the same base name as the DB e.g. Employees.mdb ==> Employees.ldb. If this file exists once the Database has been closed, deleted it.
receiving error message "the database has been placed in a state by user .... on machine ......that prevents it from being opened or locked"
i need to have multiple users being able to access the database at the same time
Hi did u finally get the solution to this problem? coz am also experiencing the same problem
NeoPa 32,557
Recognized Expert Moderator MVP
If you read through the posts and you'll find the solution :confused:
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: delete table with Visual Basic 6 |
last post by:
Dear developer,
I have an error message when I try to delete or drop Microsoft Access XP
table with ADOX in Visual Basic 6. I use the ADOX.Catalog and ADOX.table to
create and delete or drop table...
|
by: Jim Hubbard |
last post by:
It seems that Microsoft not only does not need the classic Visual Basic
developer army (the largest army of developers the world has ever seen), but
now they don't need ANY Windows developer at a...
|
by: Steve |
last post by:
Having only recently migrated across from VB6 to VB.NET I'm still
unsure whether or not I should be making (heavy) use of the
Microsoft.VisualBasic namespace in new applications. I've read a lot...
|
by: bbdobuddy |
last post by:
Hi,
How do I open a Microsoft Access 2003 form from Visual Basic.net
Thanks in advance
bbdobuddy
|
by: Jim Hubbard |
last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
| |
by: nuoo |
last post by:
Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET
Learn how to turn data into solutions with SQL Server 2000, Visual
Basic .NET, and XML. Get a fundamental grasp of SQL...
|
by: Nick |
last post by:
Hi
Has anyone encountered the "readonly" issue with Microsoft Forms 2.0 TextBox
?
The locked property of the control seems to have no effect - always enabled
regardless of whether it's set to...
|
by: =?Utf-8?B?TWlrZTE5NDI=?= |
last post by:
This is an example that is supposed to work in VB
http://support.microsoft.com/kb/175512/en-us
After spending a couple of hours downloading and installing VB Express 2008
after someone told me it...
|
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,...
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |