Help! Access DB File Locked!

Jul 26, 2005

Hi All

I am using OLEDB to connect to an Access DB and it does use the "admin" account as the default user to connect from within Access i.e. this is not a Windows account.

I have an ASP.NET web page that is trying to do a compact and repair using a jet/MDAC object called JRO (Jet Replication Object).

The problem is whenever I call the JRO object I get this error:

"You attempted to open a database that is already opened exclusively by user 'admin' on machine..."

If I try and delete the .ldb file it is ofcourse locked. I found that if I do a CTRL-ALT-DEL and end the aspnet_wp process I am then able to delete the .ldb file and then successfully execute the compact and repair from the ASP.NET web page.

The aspnet_wp process when ended simply restarts itself (a new instance no doubt) and in doing so cannot remember it had a lock on the access db.

My conclusion is that the aspnet_wp process locks the access db file for or on behalf of the "admin" user in the access db.

Even if all connections have been closed the aspnet_wp process has a lock on the database file!

I am still searching for a way to tell the aspnet_wp to let go of the access db file!

I did use getprocessbyname() from the ASP.NET page to try and kill the instance of aspnet_wp programmatically and try and force it to forget by starting a new instance of itself, but ofcourse IIS gets really upset and won't let me kill this process from an ASP.NET page because I figure that in this case its suicide and aspnet/IIS won't "kill" itself but would be happy to "kill" other processes.

Anyway, I would have been content with the "kill the aspnet_wp process instance" approach except it won't suicide.

Does anyone have any idea how I might tell the aspnet_wp process to let go of the acccess db file?

By the way, I found the only account you need in a dev environment is the ASPNET account with read/write access and also your own account if you want to browse the folder yourself. No other accounts needed.

Any ideas appreciated.

I think this one has me beaten

from howartthou
Windows XP Prof.
VS.NET 2003
IIS 5.1

View Replies


ADVERTISEMENT

Recompile Locked-down Mdb File

Jun 20, 2007

Hey all!
I have a legacy Access 2000 application (mde) with no documentation. I need to modify it. I found the mdb file and was able to make my coding changes, but I can not recompile it into an mde.

The only options on the database page are File/Window/Help, and Unhide does NOT appear in the Window menu. I have run Ghudsons code to unhide everything, and nothing happens. As I do not have the Tools/Database Utilities menu, I do not have the option to Save as mde.

Also, right-clicking seems to be disabled.

HELP!!!!! :eek:
Thanks!

View 3 Replies View Related

General :: Locked ACCDB File

Oct 19, 2012

I have a database with extension .accdb. When I open it, everything is locked. I can't access VB Editor, Navigation Pane, Ribbon, nothing. It just opens a form and the only thing that can be edited are the text boxes on the form. I can't use Shift when opening it, that does nothing. It does not prompt for a password when opening.

View 13 Replies View Related

Locked Out Of Access

Oct 10, 2005

:eek: security levels were set on a database using the wizard, unfortunately the person who set the security did not print out the sheets with the WID etc on it, this person is now unable to open access at all from their pc it asks for a password which the user does not believe they set or if they did set one it was their standard pc log in, however the database and access can be opened from any other pc on the network......can anyone out their help...thanks

View 2 Replies View Related

Locked Out Of Access

Nov 3, 2007

I copied Odun's post below to describe my problem. I'm having the same problem. I can't even creat a new blank database without being prompted for my user name and password, which aren't working.

Any suggestions would be very much appreciated.

Thanks,
Mike

-------------------------------------------------------------------------
#1 02-13-2006, 04:33 AM
odun
Registered User Join Date: Apr 2005
Posts: 108


can't log on to database

Hi all,
I was playing with passwords for one of my access db.
I tried opening the db with the password, but it won't work. So, I thought I forgot the password. I checked some posts on this forum that helped in retrieving the password and it's the same that I have been trying. I am not sure if the Name is correct, is there a way to retrieve the log on name?

I also noticed that when I try opening any other db on my system, it asks me to log on, I though I was only applying a password to one file.

Please help

Thanks!

odun
View Public Profile
Send a private message to odun
Find all posts by odun
Add odun to Your Buddy List
--------------------------------------------------------------------------

View 1 Replies View Related

Locked Myself Out Of Access

Nov 26, 2007

Hi

Is there anyway of returning the menus that I removed from the Tools > Startup options back?
It looks like I have locked myself out of my FE!!!!

Thanks,
B

View 6 Replies View Related

Locked Myself Out Of Access

Dec 11, 2007

Hello out!!

Is a moment of desperation! I created a security group or something (dont know what i was thinking!), and now there is no way to get into my application!!!! It says to contact with the administrator, but I'M the administrator!!!!

Any way to get the scripts minimun from the applications?? The classes, the modules??? God!!!! My last backup was 4 days ago!!!! I can't loose everything!!

Message:
you do not have the necessary permission to use myapplication.


:confused::confused::confused::confused::confused: :confused:

View 2 Replies View Related

Access Application Locked

Aug 18, 2005

I have an access application which is locked for edit. When ever i open this application it shows me the main menu, i want to edit this menu but it does not give me any option, even the Access File menu and toolbars are not visible. Please help

View 4 Replies View Related

Locked Access Database

Dec 6, 2004

I have a MS Access 97 database that seems to be locked. I wish to update it but I cannot open it as a regular file. When it is opened, there is no way to edit the database or access any of the controls that are usually present. The tool bars are even different.

Any idea?

Thanks,
WJ

View 2 Replies View Related

Locked Out Of My Access Database

Mar 9, 2007

I am completely locked out of my Access Database!

Basically, I have 3 forms which have all got the properties set to DISALLOW right clicking on them to prevent users accessing the design of the form, they all have code behind them so that they cover the entire screen and block ALL menus/shortcuts apart from those available on the form and I have set up a command button on each form which is password protected to ONLY allow Admins to access the design/backend of the form/database when they enter a valid password.

However, I was playing around with the settings of all these forms and have inadvertantly locked myself out, the last thing I remember doing was setting up a "Password" form to collect the Administrator password which had code attached to allow access to the database design. This was working fine until I tried "tweaking" it and now whenever I input the CORRECT password, I get the error message;-

"Error 2585: This action can't be carried out while processing a Form or Report event"

If I enter an INCORRECT password, I get the standard "Login Failed-Please try again" form that I have set up.

The "Password" form doesn't have an override/Cancel (I wanted to make it REALLY secure) it means that although I can use the database fine for entering/editing information/data within the database when it first opens, as soon as I want to make changes to the design and try to log in with "Admin" privellages using my custom made "Password" form, it then pops up with the password screen and goes no further.

I do have a backup of this database BEFORE I set up the "Password" security to collect the "Admin" Password but I can't remember the code I used and although I can work it out again, it will take me a LONG time to work it out again. So I was wondering if any of you might have some ides or a workaround I could try to gain back "Admin" rights to my database.

Does this makes sense? As stated I do have a backup so if all else fails I'm going to have to try to remember how I got it working in the first place BEFORE I cocked it up but if any of you could save me the trouble that would be very much appreciated!

Thank you very much

Alex

View 3 Replies View Related

Locked Out Of Access 2007

Apr 13, 2007

Hi

I've just tried adding the Administrator to a workgroup as described in http://support.microsoft.com/kb/918583
and now I can't open any access databases at all!

It's asking me for Login Details even on a blank database.


Anyone got any ideas?


Shane

View 2 Replies View Related

Access - Locked Table For Editing

Aug 31, 2012

I have a table which is linked to a form which has been working fine for over a year now but yesterday the table "locked" for editing. I can now only copy data from the table. The editing functions delete, cut, new etc are not working, we can still filter the data.If we enter data on the form it creates a new line on the table but we cannot edit directly from the table.

View 6 Replies View Related

Printing From A Locked Access Database

Mar 4, 2013

I have an .accde database that will not let my print button to work. How do I print from an .accde database?

View 2 Replies View Related

Please Help With Access 2000 Locked-out Open Problem!

Apr 21, 2005

I greatly appreciate your help on 2 issues:

1/ At work, I have Access 2000 application residing on a Novel server for multiusers purpose. Everyday, occasionally, the application is locked out by whoever opens first (I think?). Some of other users could not open it since it has the message like "locked out by a particular (computer name)...". Therefore the user of that computer name needs to close the application so others can open it. This issue is not happen in Access 97 as we used that version before and it is not consistent happening, so I could not find the pattern or know why?? Please let me know if you have seen this problem and how to prevent it...

2/ Do we have a way to trigger or initiate GroupWise email inside an Access 2000 application. For example, if a purchase order is created in Access 2000 application, I want to email a co-worker...OR it can be automatically sent an email to my supervisor for notifying the purchase order so he can approve it?

Thanks so much in advance for all the helps...
Access2k

View 1 Replies View Related

General :: Open MS Access Database Locked By Password?

Mar 22, 2013

I have MS access database. The database is password encrypted. I do not own this database but it is critical for me to see the contens of this database. I do not want to edit the contents.

View 9 Replies View Related

General :: Mail Merge Word File (using Data From Access File)

Mar 11, 2014

I often create contract using mail merge. I have an access file that I want to use as data source for word file. But it does not automatically.

Please download the attached file !

If there are 1 customer and 1 property, I do not need to do anything. Conversely, if there are many customers and many properties, I take time to manipulate.

Firstly, I open the word file. I have to copy and paste paragraphs that I want. Highlight of the original paragraphs is blue.

Secondly, I click 'Insert Word Field' -> select 'Next Record'.

In short, I wish to use VBA in access file to automatically perform the steps that I have outlined.

View 3 Replies View Related

Backup Current Access File Using Vba While The File Is Open

Jul 11, 2007

I have a button in the form of the current access file. What I want to do is when the user click on the button,
triggered the vba to backup current access file. But since the file is currently open, is this possible? If yes, may I know how to do it with vba?

I have tried two methods but failed:
1) Use copytofile method, but I get permission denied due to file open;
2) Use dbengine.compactdatabase method, but it also has problem if the file is open.

View 3 Replies View Related

Does File Server Hosting Back-end Mdb File Need To Have Access

Nov 15, 2013

I'm experimenting with MS Access, and I've successfully split an MDB someone created into two files. I can access the database from 2 computers at once using the front end file connecting to a file server which hosts the _be.mdb file.

Could the _be.mdb file theoretically be on a NAS without any computer attached, or is there some runtime or full version of Access that needs to run on the machine with the back end file?

View 2 Replies View Related

How To Make Setup File From Access File

Dec 7, 2006

i have develop an application in Ms Access, now i want to have setup file for that, how a setup file can be created.

View 3 Replies View Related

How To Convert .MDE File In To .MDB File In Access 97

Jul 18, 2007

Hi,

I want to make some changes in .MDB file and i do not have it. I have only .MDE file.. Could you please let me know how i can convert .MDE file into >MDB file so can change tabelsa nad reports...

Many Thanks

Nitesha

View 1 Replies View Related

Can Put Flash File Or Swf File In The MS Access

Nov 27, 2005

Hi,

In the Forms of the MS Access,

Can we add the flash file, or swf, other animation file on the form?

Thanks.

View 1 Replies View Related

Convert Access File To Exe File?

Dec 30, 2011

i want to convert accdb file to an exe file that not display any design view in other words i want the user watch only the forms and handle with the application as a program.

View 2 Replies View Related

Converting Access 2003 File To Access 2002

Nov 19, 2006

Hello,
I have created several files in Access 2003, and sent them to a collegue, but he is using Access 2002 and cannot open my files.

What do I need to do so he can access my files? My experience with Access is very limited.
Thank you in advance for your help.
Phil

View 3 Replies View Related

HELP!!! Locked Myself Out Of My Own Db!!

Jul 29, 2005

Hi

I know this sounds stupid but on my database with user-level security, i have somehow managed to remove administer rights from all users , and do not know how to change it back, if it is even possible.

I think what might have happened is it was stored on my USB drive and i switched computers and opened the db, would that have affected it? :confused:

Is there an easy way out of this or am i screwed? :eek:

thanks, ian :)

View 5 Replies View Related

Help!!! Locked Out

Aug 29, 2007

I have been following a text book to try and secure a database, i set up the Work Group Info File, allocated a password, now even when i want to start a completley new database i have to enter a password.........

AND when i set up the password i must have enetered it wrong now i am completely locked out!!


Is there any way to fix this i cant do anything!! I cant even start on a completely new databse!!

Please help

View 8 Replies View Related

Locked Out Of My Databse

Jul 12, 2005

undefined

Hi, can anyone help? Like an idiot I veered away from my intention to put a password on an Access database which holds only a table and a few queries and explored other security options. I now cannot get in to the database at all and get a message telling me that I do not have the necessary acces srights and to consult my administrator. When I look at the properties, I am shown as the administrator, which makes sense but despite trying various, desperate things, I cannot get back in to take the security off. Needless to say I did not create a copy first, so have learned a lesson the hard way. Any advice gratefully received.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved