473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Multi user locking after first update

Experts and books all say that you can share an Access back end on a
shared
drive with the front end running on each host computer. I have a
simple
database that tracks student data and it is shared between 4 staff
memebers.
Each staff computer has a copy of the front-end (linked tables, forms,
and
queries). They basically only use one form. The form works like this

Form -Query -Linked Tables -Main DB Tables

When the user opens the form initially, it works just fine. In fact,
two or
three users can open it up and edit fields simultaneously, but after
an
update has been made, only those who have that form open can continue
editing
(and it works fine). BUT, when the next user tries to open the form
a
message in the lower left corner says "this recordset is not
updatable". At
that point, the data is locked to any new users. Anyone who was
already in
can access and update the data, but any new instances of the form are
not
updatable.

I have double checked that the form and underlying query have "No
Locks." I
have noticed, however, that for some arbitrary period of time the
"record-locking" file is created for the back-end databse, even when
it's not
open. I do have a couple calculated fields (string manipulation
mostly)

Any help would be greatly appreciated. This has been the bain of my
existance for weeks.

Thanks,

Zmickle
Nov 12 '08 #1
9 2583
Would you mind telling us what backend you are using (Jet, MS-Acccess
mdb, MS-SQL, MySQL), version of backend, locking strategies...

rob*

zm*****@gmail.com wrote:
Experts and books all say that you can share an Access back end on a
shared
drive with the front end running on each host computer. I have a
simple
database that tracks student data and it is shared between 4 staff
memebers.
Each staff computer has a copy of the front-end (linked tables, forms,
and
queries). They basically only use one form. The form works like this

Form -Query -Linked Tables -Main DB Tables

When the user opens the form initially, it works just fine. In fact,
two or
three users can open it up and edit fields simultaneously, but after
an
update has been made, only those who have that form open can continue
editing
(and it works fine). BUT, when the next user tries to open the form
a
message in the lower left corner says "this recordset is not
updatable". At
that point, the data is locked to any new users. Anyone who was
already in
can access and update the data, but any new instances of the form are
not
updatable.

I have double checked that the form and underlying query have "No
Locks." I
have noticed, however, that for some arbitrary period of time the
"record-locking" file is created for the back-end databse, even when
it's not
open. I do have a couple calculated fields (string manipulation
mostly)

Any help would be greatly appreciated. This has been the bain of my
existance for weeks.

Thanks,

Zmickle
Nov 12 '08 #2
On Nov 12, 12:47*am, "Robert S." <robsmi...@googlemail.comwrote:
Would you mind telling us what backend you are using (Jet, MS-Acccess
mdb, MS-SQL, MySQL), version of backend, locking strategies...

rob*

zmic...@gmail.com wrote:
Experts and books all say that you can share an Access back end on a
shared
drive with the front end running on each host computer. *I have a
simple
database that tracks student data and it is shared between 4 staff
memebers.
Each staff computer has a copy of the front-end (linked tables, forms,
and
queries). *They basically only use one form. *The form works like this
Form -Query -Linked Tables -Main DB Tables
When the user opens the form initially, it works just fine. *In fact,
two or
three users can open it up and edit fields simultaneously, but after
an
update has been made, only those who have that form open can continue
editing
(and it works fine). *BUT, when the next user tries to open the form
a
message in the lower left corner says "this recordset is not
updatable". *At
that point, the data is locked to any new users. *Anyone who was
already in
can access and update the data, but any new instances of the form are
not
updatable.
I have double checked that the form and underlying query have "No
Locks." *I
have noticed, however, that for some arbitrary period of time the
"record-locking" file is created for the back-end databse, even when
it's not
open. *I do have a couple calculated fields (string manipulation
mostly)
Any help would be greatly appreciated. *This has been the bain of my
existance for weeks.
Thanks,
Zmickle- Hide quoted text -

- Show quoted text -
The backend is an Access DB, therefore Jet (no?). It is the result of
splitting a database that used to be consolidated.

More facts:
- I tried to take out all calculated fields in the query behind the
form, but it did not stop the locking problem.
- The locking file for teh BACK END is created when the form is
updated and does not go away until the fomr on the FRONT END is
closes.

Thanks for the help.
Nov 12 '08 #3
Ok reread your previous post.

What seems strange is the locking file even nobody is on the DB. You are
absolutely sure for this?

zm*****@gmail.com wrote:
On Nov 12, 12:47 am, "Robert S." <robsmi...@googlemail.comwrote:
>Would you mind telling us what backend you are using (Jet, MS-Acccess
mdb, MS-SQL, MySQL), version of backend, locking strategies...
>>I have double checked that the form and underlying query have "No
Locks." I
have noticed, however, that for some arbitrary period of time the
"record-locking" file is created for the back-end databse, even when
it's not
open. I do have a couple calculated fields (string manipulation
mostly)
Any help would be greatly appreciated. This has been the bain of my
existance for weeks.
Thanks,
Zmickle- Hide quoted text -
- Show quoted text -
The backend is an Access DB, therefore Jet (no?).
Fine. So it is no server issue... ahm STOP it could be a server issue.
If you having SAMBA running as a fileserver (DB is stored there) and
create rights are set wrong, the lock database file ( assuming ldb )
will be owned by the person who logged into mdb, first. The other ones
having no chance to accessing it because they cannot modify ldb. Default
rights are set to reading, so DB is accessible but not modifyable for
others. You have to set create mask attributes to rw for all.

More facts:
- I tried to take out all calculated fields in the query behind the
form, but it did not stop the locking problem.
- The locking file for teh BACK END is created when the form is
updated and does not go away until the fomr on the FRONT END is
closes.
Another thing that could be. Some VBA behind the form may cause the
lock. Did you check this?

rob*
Nov 13 '08 #4
<zm*****@gmail.comwrote in message
news:95**********************************@i18g2000 prf.googlegroups.com...
>
Any help would be greatly appreciated. This has been the bain of my
existance for weeks.
Do all of the users have full change permissions to the BE host folder?

Keith.
www.keithwilby.co.uk

Nov 13 '08 #5
On Nov 13, 3:18 am, "Keith Wilby" <h...@there.comwrote:
<zmic...@gmail.comwrote in message

news:95**********************************@i18g2000 prf.googlegroups.com...
Any help would be greatly appreciated. This has been the bain of my
existance for weeks.

Do all of the users have full change permissions to the BE host folder?

Keith.www.keithwilby.co.uk
@Rob - Upon further inspection, the locking file goes away after the
form is closed on the computer that made the update.

@Kieth - All users have read/write permission. Do they need more?
Nov 13 '08 #6
"zm*****@gmail.com" <sa********@gmail.comwrote in message
news:de**********************************@q26g2000 prq.googlegroups.com...
>
@Kieth - All users have read/write permission. Do they need more?
They need Delete permissions so that the last user out can destroy the
record locking file (ldb).

Nov 13 '08 #7
On Nov 13, 9:06 am, "Keith Wilby" <h...@there.comwrote:
"zmic...@gmail.com" <samlamb...@gmail.comwrote in message

news:de**********************************@q26g2000 prq.googlegroups.com...
@Kieth - All users have read/write permission. Do they need more?

They need Delete permissions so that the lastuserout can destroy the
record locking file (ldb).
Kieth, that is priceless information. Since I don't have control of
the shared drive, I can't change the permissions, so I will request it
tomorrow. Cross your fingers.

Thanks,

Sam
Nov 14 '08 #8
On Nov 13, 8:38*pm, "zmic...@gmail.com" <samlamb...@gmail.comwrote:
On Nov 13, 9:06 am, "Keith Wilby" <h...@there.comwrote:
"zmic...@gmail.com" <samlamb...@gmail.comwrote in message
news:de**********************************@q26g2000 prq.googlegroups.com....
@Kieth - All users have read/write permission. *Do they need more?
They need Delete permissions so that the lastuserout can destroy the
record locking file (ldb).

Kieth, that is priceless information. *Since I don't have control of
the shared drive, I can't change the permissions, so I will request it
tomorrow. *Cross your fingers.

Thanks,

Sam
Turns out all users have "Full Control" of the folder.

I have also tested the query itself without the form. When I update
the query, it locks the data until the datasheet is closed.
Nov 14 '08 #9
Hi Sam,

sorry for delay. Was off some time...

Sam Lambson wrote:
On Nov 13, 8:38 pm, "zmic...@gmail.com" <samlamb...@gmail.comwrote:
Turns out all users have "Full Control" of the folder.

I have also tested the query itself without the form. When I update
the query, it locks the data until the datasheet is closed.
If you having a query that cause problems, the only ways to stop it is,
to segmentize it to its bones. A boring job if it is a huge one.

Maybe it is a join or a reference between tables - you must see what it
is...

rob*
Nov 18 '08 #10

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

Similar topics

9
by: john smile | last post by:
Hi All, I want to lock 2 tables on 2 servers using TABLOCKX hint. These tables function as semaphores in my application. It means when the tables are locked then other users will not be able to...
2
by: RipTide | last post by:
Background: Using an unsupported/abandoned multi-user multi-database program that uses Access 97 and Jet 3.5. Program itself appears to have been built with PowerBuilder 6.5. Databases reside on...
2
by: Scott Bryce | last post by:
I am creating a CGI application in Perl that uses an Access database. It will be hosted on an NT server. I have used flat file DBMs (tied hashes) on UNIX servers, but I am not familiar with how...
5
by: bobwansink | last post by:
Hi, I'm relatively new to programming and I would like to create a C++ multi user program. It's for a project for school. This means I will have to write a paper about the theory too. Does anyone...
4
by: RG | last post by:
Wondering if anyone can suggest a solution to my dilemma. (VB6, ADO, Access 200). The situation: Because I had pre-existing data inquiry modules that relied on database records, as well as a...
3
by: Joe Befumo | last post by:
This is my first attempt at multi-thread programming, and I'm encountering a program-logic problem that I can't quite put my finger on. The program is pretty simple. I'm trying to validate a...
45
by: Luvin lunch | last post by:
Hi, I'm new to Access and have been asked to develop a simple Access system to replace one that already exists. There are five users of the current Access system and each of the users works off...
1
by: bjethwan | last post by:
Hi, I have a small doubt in SQL Procedures in DB2. It is the first time that I am using DB2 UDB, so please bear me. Following, is a very small example to put across my doubt. In...
26
by: beporter | last post by:
First time poster here! Let me get straight to it... I'm currently not in a position that lets me interact with other developers face to face on a regular basis, and I am in need of some "round...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.