Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2004, 11:59 AM
Authorized User
 
Join Date: Apr 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default The database has been placed in a state ....

I have 2 separate forms. When i try to update the database using the 2nd form, I get "The database has been placed in a state by user 'Admin' on machine 'MAYS' that prevents it from being opened or locked.

Each form has the following VBA code:

 Set wrkJet = CreateWorkspace("NewJetWorkspace", _
           "admin", "", dbUseJet)
    Set db = wrkJet.OpenDatabase("Youth Conference.mdb")

.
.(some insert and update statements are here)
.
.
 wrkJet.Close

Can someone please help!

Thanks!

 
Old May 5th, 2004, 02:34 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

when the first form opens the database, it is probably opening it exclusively. There should be another parameter that tells it to open it shared.




Sal
 
Old May 12th, 2004, 08:14 PM
Authorized User
 
Join Date: Apr 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!

 
Old May 20th, 2006, 01:54 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how to prevent the following error
The database has been placed in a state by user 'Admin' on machine 'Machine Name' that prevents it from being opened or locked.
in C#

 
Old May 20th, 2006, 02:00 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what is the solution for the following error using C#
The database has been placed in a state by user 'Admin' on machine 'Machine Name' that prevents it from being opened or locked.






Similar Threads
Thread Thread Starter Forum Replies Last Post
control state Tremmorkeep ASP.NET 2.0 Basics 1 September 3rd, 2007 08:42 PM
state management nalla ASP.NET 1.0 and 1.1 Professional 2 December 21st, 2005 01:19 AM
Session State|View State|Do I have other options? rockon ASP.NET 1.x and 2.0 Application Design 2 October 5th, 2005 07:10 PM
Using Application state apry BOOK: Beginning ASP.NET 1.0 7 May 31st, 2004 04:07 AM
Saving State psingh ASP.NET 1.x and 2.0 Application Design 0 July 8th, 2003 01:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.