Hi
To display a message when a user attempts to edit a record in a
multi-user environment where a forms Record Locking is set to Edited
Record and another user is editing a record, is difficult because
Access does not trigger an error, I have overcome this problem by
trapping the Delete and Backspace key in the KeyDown event of the form
and displaying a label on the form saying "If Record cannot be Edited
it may be that Another User is Editing the same Record, try again
later. Click here to close this message."
Select Case KeyCode
Case 8, 46
if Me.RecordLocks = 2 then Me!MyLabel.Visible = -1
End Select
On the MouseDown event of the label hide the label with
Me!MyLabel.Visible = 0
OK it isn't perfect but I think it is a useful solution unless some of
you know better.....................
Patrick 2 2475
On Fri, 15 Oct 2004 17:05:35 GMT, Patrick Fisher <in**@psoftuk.com>
wrote:
In Form_Current write:
MsgBox "Yo! Observe the potential STOP sign in the record selector,
and act accordingly!, vbCritical)
-Tom. Hi To display a message when a user attempts to edit a record in a multi-user environment where a forms Record Locking is set to Edited Record and another user is editing a record, is difficult because Access does not trigger an error, I have overcome this problem by trapping the Delete and Backspace key in the KeyDown event of the form and displaying a label on the form saying "If Record cannot be Edited it may be that Another User is Editing the same Record, try again later. Click here to close this message."
Select Case KeyCode Case 8, 46 if Me.RecordLocks = 2 then Me!MyLabel.Visible = -1 End Select
On the MouseDown event of the label hide the label with
Me!MyLabel.Visible = 0
OK it isn't perfect but I think it is a useful solution unless some of you know better.....................
Patrick
Not a particularly useful method if you are not displaying record
selectors
Patrick
On Fri, 15 Oct 2004 22:33:10 -0700, Tom van Stiphout
<no*************@cox.net> wrote: On Fri, 15 Oct 2004 17:05:35 GMT, Patrick Fisher <in**@psoftuk.com> wrote:
In Form_Current write: MsgBox "Yo! Observe the potential STOP sign in the record selector, and act accordingly!, vbCritical)
-Tom.
Hi To display a message when a user attempts to edit a record in a multi-user environment where a forms Record Locking is set to Edited Record and another user is editing a record, is difficult because Access does not trigger an error, I have overcome this problem by trapping the Delete and Backspace key in the KeyDown event of the form and displaying a label on the form saying "If Record cannot be Edited it may be that Another User is Editing the same Record, try again later. Click here to close this message."
Select Case KeyCode Case 8, 46 if Me.RecordLocks = 2 then Me!MyLabel.Visible = -1 End Select
On the MouseDown event of the label hide the label with
Me!MyLabel.Visible = 0
OK it isn't perfect but I think it is a useful solution unless some of you know better.....................
Patrick This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andy Meyer |
last post by:
Hi all,
as far as I know, ADO.Net can only optimistic locking. But with CLI
for example the DB2 locks pessimistic. Does anybody know how I can do
pessimistic locking with ADO.Net?
Thanks in...
|
by: Fardude |
last post by:
ACCESS 97, Pessimistic Record Locking!???
Does Access 97 allow record level Pessimistic locking?
In other words, when user A is editing a record (has it locked) and
User B tries to edit it...
|
by: DebbieG |
last post by:
I have created a database for a client and was told that it was to be a
one-user database. Well, you know the next statement ... now they want 3
people to be able to use the database. (FYI, I...
|
by: Jimbo |
last post by:
Ever since I moved the access 97 backend to a SQL Server backend with
Access 97 front end..some forms pop up with a The data has been
changed...Another user edited this record and saved the changes...
|
by: jv |
last post by:
Hello,
I'm using A2K and am trying to make sure that my program only locks one
record at a time and I don't seem to have any luck getting that to
happen.
In the database options, I've selected...
|
by: wheel |
last post by:
I have been ok with optimistic locking most of the time but I have a
situation now where there is more of a chance that users could try to
edit a record at the same time. I'd like to use pessimitic...
|
by: RayPower |
last post by:
I'm having problem with using DAO recordset to append record into a
table and subsequent code to update other tables in a transaction. The
MDB is Access 2000 with the latest service pack of JET 4....
|
by: master |
last post by:
Actually, it is not only the record locking, what I need, and nobody seems
to descibe this.
Imagine the following scenario.
There is a database with, say 10000 records with some unvalidated...
|
by: Paul H |
last post by:
I have an Employees table with the following fields:
EmployeeID SupervisorID
Fred Bob
Bob
John Bob
Mary Bill
Bill
I have created a self join in...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
| |