Locking Records

G

Guest

I want to lock a record on a form if it is open by another user. I have
record locks set to "Record Level Locking". However it does not lock anybody
out. If I set to "All Records Locked", it works but it is not what I want.
What am I doing wrong?
 
G

Guest

It all depends what you mean by "lock anybody out".
Running SQL can always defeat Access's record locking specifications.

There is a lot of information about 'record locking' in Access Help.

Dorian
 
G

Guest

When one user is editing a record, I don't want another user to be able to
edit the same record.
 
J

John Vinson

When one user is editing a record, I don't want another user to be able to
edit the same record.

That is Access' default behavior. You don't need to do ANYTHING to get
that.

The downside is that the second user doesn't get a warning until they
attempt to save the record.

John W. Vinson[MVP]
 
A

Albert D.Kallal

MU86 said:
I want to lock a record on a form if it is open by another user. I have
record locks set to "Record Level Locking". However it does not lock
anybody
out. If I set to "All Records Locked", it works but it is not what I
want.
What am I doing wrong?

You need to set this for the particular form.

IN the "data" tab, set the locks to edited record.

If you set the above, then any other user who tries to edit the record will
NOT be able to.

If you leave it to no-locks, then users will get the message about the
"other" user having changed the record...
 
G

Guest

It still is letting access to the "open" record with "record level locking"
turned on. One clarification....mulitple users are using the same form if it
makes any difference.
 
A

Albert D.Kallal

MU86 said:
It still is letting access to the "open" record with "record level
locking"
turned on. One clarification....mulitple users are using the same form if
it
makes any difference.


Yes...two users can still open to the same record. Who ever starts editing
the record get the lock..and any other user will see "lock" icon in the
record selector if they try and edit the record.

So, the actual lock does not occur by just viewing the record, you have to
actually "dirty" the record. So, only one user will be allowed to edit..but
others can still view...or navigate "past" this record without receiving
some nag message.
 
G

Guest

Thanks. I see that it is preventing another person from editing the record.
How can I have a message pop-up if the record is locked?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top