473,511 Members | 16,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft access/visual basic- database lockout between users

11 New Member
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
Feb 20 '07 #1
9 7996
Killer42
8,435 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
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.
Feb 20 '07 #2
stuart wieder
11 New Member
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
Feb 21 '07 #3
Killer42
8,435 Recognized Expert Expert
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.
Feb 21 '07 #4
Killer42
8,435 Recognized Expert Expert
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.
Feb 21 '07 #5
stuart wieder
11 New Member
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.
Feb 22 '07 #6
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
Feb 23 '07 #7
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.
Feb 23 '07 #8
noks
19 New Member
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
Feb 23 '07 #9
NeoPa
32,557 Recognized Expert Moderator MVP
If you read through the posts and you'll find the solution :confused:
Feb 23 '07 #10

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

Similar topics

8
5654
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...
99
6012
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...
2
2096
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...
4
12261
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
182
7356
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
1
1883
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...
1
6385
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...
23
2449
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...
0
7242
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
7355
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
7510
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
5668
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,...
1
5066
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...
0
3225
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...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
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 ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.