473,480 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Ms. Access database problem

Hello,
I have a MS. Access database in XP. When I open the database in design
view, users will get an error message & cannot even open the database.
Is there any way to solve this problem?

Thanks for your help in advance.

Orchid

Nov 13 '05 #1
16 2625
What error message? Did you try the standard compact/repair routine?

Nov 13 '05 #2
Thanks for your reply!
The error message is: "The database has been placed in a state by user
'Admin' on machine 'Name' that prevents it from being opened or
locked."

Yeah, I tried the standard compact/repair routine, (which is under
Tool, Database Utilities, Compact and Repair Database...)but still got
the same error message.

Nov 13 '05 #3
"Orchid" <yh******@yahoo.com> wrote in message news:<11**********************@g14g2000cwa.googleg roups.com>...
Thanks for your reply!
The error message is: "The database has been placed in a state by user
'Admin' on machine 'Name' that prevents it from being opened or
locked."

Yeah, I tried the standard compact/repair routine, (which is under
Tool, Database Utilities, Compact and Repair Database...)but still got
the same error message.


try deleting the *.ldb file on the machine that has it opened or locked.
Nov 13 '05 #4
I tried to delete the *.ldb file, but got error message: "It is being
used by another person or program. Close any programs that might be
using the file and try again."
The *.ldb is a file automatically created after opening a *mdb file in
a directory, once the *mdb file is closed, the *ldb file is disappear.

Is there any way that the users can open the database even I am on the
design view? Is it dealing with Security of the database?

Your help is appreciated!

Regards,
Orchid

Nov 13 '05 #5
Orchid wrote:
Hello,
I have a MS. Access database in XP. When I open the database in design
view, users will get an error message & cannot even open the database.
Is there any way to solve this problem?


No. Do you really want users to be getting into the database when you
are doing design work on it?

IS this a back end database or is it an application that everyone
accesses on a network?
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #6
I want the users to be able to log into the database at any time even
when I am working on the design view. I want to eliminate the calls
from users saying they cannot open the database.

The database is on the network share drive. I have the database set up
that the users cannot view the design views,tables, and queries. When
they open the database, they will see a form & double click from a list
to open forms & reports. so is it consider to be an application? I
am not sure.

Nov 13 '05 #7
Orchid,
Look for JetComp on Microsoft's web site. It isn't a sure thing but there
are .mdb's that it will recover which cannot be recovered by Access. It's
free and it it works, very cool.

--
Alan Webb
kn*******@SPAMhotmail.com
"It's not IT, it's IS

"Orchid" <yh******@yahoo.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I tried to delete the *.ldb file, but got error message: "It is being
used by another person or program. Close any programs that might be
using the file and try again."
The *.ldb is a file automatically created after opening a *mdb file in
a directory, once the *mdb file is closed, the *ldb file is disappear.

Is there any way that the users can open the database even I am on the
design view? Is it dealing with Security of the database?

Your help is appreciated!

Regards,
Orchid

Nov 13 '05 #8
Orchid wrote:
I want the users to be able to log into the database at any time even
when I am working on the design view. I want to eliminate the calls
from users saying they cannot open the database.

The database is on the network share drive. I have the database set up
that the users cannot view the design views,tables, and queries. When
they open the database, they will see a form & double click from a list
to open forms & reports. so is it consider to be an application? I
am not sure.

You need to split the database into a front-end and a back-end.
The FE will contain the Forms, Queries, Macros, Reports and Modules.
The BE will contrin only the tables.
Put the BE on the network and the FE on each users pc.
Link the FE to the BE.

This way you can make changes to your copy of the FE and then give each user
an new compy when you have completed making you changes.

Ron

--
Ronald W. Roberts
Roberts Communication
rw*@robcom.com

Nov 13 '05 #9
"Orchid" <yh******@yahoo.com> wrote in message news:<11********************@l41g2000cwc.googlegro ups.com>...
I want the users to be able to log into the database at any time even
when I am working on the design view. I want to eliminate the calls
from users saying they cannot open the database.

The database is on the network share drive. I have the database set up
that the users cannot view the design views,tables, and queries. When
they open the database, they will see a form & double click from a list
to open forms & reports. so is it consider to be an application? I
am not sure.


Has this worked before where you are in design view and others can
open the database without the error? If not maybe being in design
view locks the database.
Nov 13 '05 #10
I have more than 15 users & in different locations. It will be a
headache of doing the copies to each of them. Is there any other way?
Thanks for your help!

Nov 13 '05 #11
No, it always has problem to open the database if the design view is
open.

Nov 13 '05 #12
Orchid,

Are you saying that the users all have theie own versions of the
database at their own locations? If not, and you actually have all the
users going into the same database on a network location then there is
a recommended way of handling this.

You create the database as you have done but once complete (as it will
be at the moment) you take a copy of it and empty all data from it.

This copy has all its tables removed and you then LINK to the tables in
the full database.

Then you go back to the main database and remove all the forms and
other rubbish, leaving only the data (alternatively you can leave it
all here but it means maintaining the forms etc. in two places.)

You then do one of two things. You either instruct your users to copy
the front end (with the linked tables) to their own PCs and double
click on that file and NOT the one on the network, OR you create a
function to do this for them.

I would create a new function in the server end database (with the
actual data) that is run on startup, that copies the current server
version of the front end (with the linked tables) to their local C
drive and then closes the main database (unless it is you of course...
you can learn about that later)

You could then think about version control, you now have a database
that is being properly accessed by your users using a recommended and
safe method. You want users to be using the latest version of the front
end, so you could automate a version detection that would give you a
new copy of the front end if you are out of date. This has been done
before and i'm pretty sure that there is some info on
www.mvps.com...probably...

That is all for now as many others should follow on with their
recommendations...

P.S. if you let more than about 10 people go into a server based
database you will probably kill it very quickly and need a lot of time
and energy to keep recovering it...

P.P.S. If your database is stuck now and there are definitley no users
in it... you need to get the server admin to delete the .ldb file and
then you can try to repair/compact things.

P.P.P.S. you will at some point need to kick users out to maintain the
database... ALL databases have downtime at some point... even if they
are monster server systems with mirroring etc...

Good luck!!!

Nov 13 '05 #13
Thanks for you recommendations!!!
I have no problem to create the front-end & back-end databases.
However, I am new on doing this security. How to create the function
to copy the database to their C drive & close the main database ? (is
the main database the Back-end database which with tables only)? Do
you have any examples that I can take a look? For the version control,
I will have 2 databases: 1) DB1 with the tables only for the back-end;
2) DB2 is linked all the tables from back-end database (DB1) and with
all the queries, forms, reports, Macros, etc. I will make changes on
DB2, so I don't need to worry about if the users are using latest
version or not. Is that correct?
I had Network problem when opened this www.mvps.com...probably... Any
other link?

Your help is greatly appreciated!!

Nov 13 '05 #14
Sorry the link got wierd on me... try...

http://www.mvps.com/access

Your description is good.

The function to copy your latest version of the FE (Front End) database
to their PC is going to be a function in the FE at any time.
The startup function of the FE database should check in the BE (Back
End) database for a value for the current version. If that is the same
version as the current one then all is okay to startup. If the version
is not the same then the FE needs to be shutdown and replaced with a
new version. The problem is in how to run code when you're shutting
down the FE database that contains the code.

I have to admit that i have only viewed other examples of this having
never needed to force this control over users. You should search around
this newsgroup and at mvps for examples but there are several out
there.

It might be better to invest in training your users to copy the FE
themselves.

Good luck getting it sorted...

Nov 13 '05 #15
Sorry once more... it's http://www.mvps.org/access/
Enjoy...

Nov 13 '05 #16
Thanks for your help and your time! I am working on it.

Nov 13 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
5817
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
10
6015
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
49
14275
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
17
2454
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
15
2518
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions,...
34
2533
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
9
3812
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
18
9100
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
11
2358
by: Harel | last post by:
I have a report SQL which have been working for a few weeks. Its large and the target database is large. It has 59 join, and I dont think there is anything I can do about this, since the DB I use...
6
2397
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
0
7041
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
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7044
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,...
1
4779
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
2995
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
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
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.