PC Review


Reply
Thread Tools Rate Thread

Data Locking in Shared DB

 
 
Scott
Guest
Posts: n/a
 
      30th Aug 2006
I would appreciate suggestions on the following problem....

I am having problems sharing a database that is stored on a network
drive. The problems being when a second user tries to share use of the
mdb file over the network.

There are two errors:
--Sometimes any user after the first will get a series of warning
messages... each saying the same thing,
"You do not have exclusive access to the database at this time.
If you
proceed to make changes, you may not be able to save them
later."
The user must click through about ten of these before the system lets
them proceed.

--Even if the second (or greater) user doesn't get these messages, the
system may not lock the records. If a second user has connected,
any user trying to use the DB will get an error message when trying
to add a new record.
The system responds with a message that says,
"Save Action Cancelled."

Background:
-- The db is an Access 2003 mdb that has linked tables.
The linked tables are stored on a SQL server. (I know it would be
better as an ADP, but I am upgrading system and I am not able to
convert it to a project. )

-- I have the database's "default record locking" set to "Edited
Record."
-- I have each form's "Record Locks" property set to "Edited
Record."
-- I all forms that only display data to have "Recordset Type" of
"Snapshot."
-- Forms that edit records are set to "Dynaset."
-- The database opens in shared mode.

The problem does NOT occur if users copy the mdb file to their desktop
and run from there, but always occurs if two or more users run the file
from the network location.

Can someone point out what I am missing or should try?

Thanks!

 
Reply With Quote
 
 
 
 
Scott
Guest
Posts: n/a
 
      30th Aug 2006
Sorry.. the second error should read, "the system WILL lock the
records,"
instead of "may not lock."

> --Even if the second (or greater) user doesn't get these messages, the
> system may lock the records. If a second user has connected,
> any user trying to use the DB will get an error message when trying
> to add a new record.
> The system responds with a message that says,
> "Save Action Cancelled."


Scott wrote:
> I would appreciate suggestions on the following problem....
>
> I am having problems sharing a database that is stored on a network
> drive. The problems being when a second user tries to share use of the
> mdb file over the network.
>
> There are two errors:
> --Sometimes any user after the first will get a series of warning
> messages... each saying the same thing,
> "You do not have exclusive access to the database at this time.
> If you
> proceed to make changes, you may not be able to save them
> later."
> The user must click through about ten of these before the system lets
> them proceed.
>
> --Even if the second (or greater) user doesn't get these messages, the
> system may not lock the records. If a second user has connected,
> any user trying to use the DB will get an error message when trying
> to add a new record.
> The system responds with a message that says,
> "Save Action Cancelled."
>
> Background:
> -- The db is an Access 2003 mdb that has linked tables.
> The linked tables are stored on a SQL server. (I know it would be
> better as an ADP, but I am upgrading system and I am not able to
> convert it to a project. )
>
> -- I have the database's "default record locking" set to "Edited
> Record."
> -- I have each form's "Record Locks" property set to "Edited
> Record."
> -- I all forms that only display data to have "Recordset Type" of
> "Snapshot."
> -- Forms that edit records are set to "Dynaset."
> -- The database opens in shared mode.
>
> The problem does NOT occur if users copy the mdb file to their desktop
> and run from there, but always occurs if two or more users run the file
> from the network location.
>
> Can someone point out what I am missing or should try?
>
> Thanks!


 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      30th Aug 2006
"Scott" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I would appreciate suggestions on the following problem....
>
> The problem does NOT occur if users copy the mdb file to their desktop
> and run from there, but always occurs if two or more users run the file
> from the network location.


You shouldn't be sharing MDBs: each user should have his/her own copy of the
database, preferably on his/her hard drive.

If you're concerned that they may not be using the most up-to-date copy of
the database, check the free AutoFE updater Tony Toews has at
http://www.granite.ab.ca/access/autofe.htm


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)



 
Reply With Quote
 
dbahooker@hotmail.com
Guest
Posts: n/a
 
      30th Aug 2006
MDB is for babies; lose the training wheels.

Access Data Projects are a MUCH superior product.

Spit on mdb people.

-Aaron
ADP Nationalist


Douglas J. Steele wrote:
> "Scott" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I would appreciate suggestions on the following problem....
> >
> > The problem does NOT occur if users copy the mdb file to their desktop
> > and run from there, but always occurs if two or more users run the file
> > from the network location.

>
> You shouldn't be sharing MDBs: each user should have his/her own copy of the
> database, preferably on his/her hard drive.
>
> If you're concerned that they may not be using the most up-to-date copy of
> the database, check the free AutoFE updater Tony Toews has at
> http://www.granite.ab.ca/access/autofe.htm
>
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)


 
Reply With Quote
 
dbahooker@hotmail.com
Guest
Posts: n/a
 
      30th Aug 2006
ADP you don't have to be constantly updating the frontends.. the tables
and queries -- and functions for that matter-- always live in a single
place.

it is MUCH easier to manage; much simpler; and MUCH better performance.

and crap; development is easier!

-Aaron
ADP Nationalist


(E-Mail Removed) wrote:
> MDB is for babies; lose the training wheels.
>
> Access Data Projects are a MUCH superior product.
>
> Spit on mdb people.
>
> -Aaron
> ADP Nationalist
>
>
> Douglas J. Steele wrote:
> > "Scott" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >I would appreciate suggestions on the following problem....
> > >
> > > The problem does NOT occur if users copy the mdb file to their desktop
> > > and run from there, but always occurs if two or more users run the file
> > > from the network location.

> >
> > You shouldn't be sharing MDBs: each user should have his/her own copy of the
> > database, preferably on his/her hard drive.
> >
> > If you're concerned that they may not be using the most up-to-date copy of
> > the database, check the free AutoFE updater Tony Toews has at
> > http://www.granite.ab.ca/access/autofe.htm
> >
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no private e-mails, please)


 
Reply With Quote
 
Scott
Guest
Posts: n/a
 
      31st Aug 2006
Thanks for the response, Doug. That's a good idea... and Tony Toews
certainly has done a great thing by sharing that app.

For anyone reading this in the future, I found the solution in the
following post... it made me realize that I was using DoCmd.Save
instead of RunCommand acCmdSaveRecord.
-------------------------------------------------

From: "Allen Browne" <abrowne1_SpamT...@bigpond.net.au>
References: <08f701c36cb1$4ff5b5e0$(E-Mail Removed)>
Subject: Re: Action Save cancelled
Date: Thu, 28 Aug 2003 13:25:28 +0800

DoCmd.Save does not save the record. It attempts to save the form (e.g.
its
Filter property).

If multiple users or processes have the form open, the attempt to save
can
fail. Because of the monolithic save in Access 2000 onwards, this is a
common problem.


If you intended to save the record, try this:


RunCommand acCmdSaveRecord
DoCmd.Close acForm, me.name, acSaveNo

 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      2nd Sep 2006
Aaron wrote:

>MDB is for babies; lose the training wheels.
>
>Access Data Projects are a MUCH superior product.


FWIW the Auto FE Updater is equally applicable to ADPs as you don't want to share ADP
FEs either.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      2nd Sep 2006
Aaron wrote:

>ADP you don't have to be constantly updating the frontends.. the tables
>and queries -- and functions for that matter-- always live in a single
>place.


You'd never just update queries and functions by themselves. You'd also updating or
adding forms and reports. Thus your answer is irrelevant.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
dbahooker@hotmail.com
Guest
Posts: n/a
 
      8th Sep 2006
Tony;

you see-- I don't need to share frontends; I don't need ot update
them... since half of your update effort involves queries and tables--
in an Access Data Project these are all stored IN ONE PLACE-- like they
should be.

MDB is for babies.

Only with crappy old platforms like MDB do you need a dozen shortcuts /
workarounds to get _ANYTHING_ done.

-Aaron
ADP Nationalist



Tony Toews wrote:
> Aaron wrote:
>
> >MDB is for babies; lose the training wheels.
> >
> >Access Data Projects are a MUCH superior product.

>
> FWIW the Auto FE Updater is equally applicable to ADPs as you don't want to share ADP
> FEs either.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking a shared worksheet parttimer Microsoft Excel Misc 1 22nd Sep 2009 05:33 PM
locking a shared worksheet parttimer Microsoft Access 2 22nd Sep 2009 05:21 PM
Shared Workbooks Locking Up =?Utf-8?B?cmFzdHVz?= Microsoft Excel Misc 0 19th Jul 2005 09:24 PM
Shared file locking mizeassoc Microsoft Excel Misc 1 13th Nov 2004 08:40 PM
Locking a shared database Matt Moore Microsoft Access Security 3 19th Nov 2003 08:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:35 AM.