Re: How to avoid users pick same case
- From: "Bert van den Dongen" <bertdon@xxxxxxxxxx>
- Date: Fri, 28 Dec 2007 13:49:22 +0100
<joyo2003us@xxxxxxxxx> schreef in bericht news:643253b1-8ef2-4a6e-8028-9646d04b9ef9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have a form which was split into two parts. One datagrid is on left
side which lists pending case numbers. The right side have textboxes
to display the detail information of each case. The case information
will be displayed when the row of case number is double clicked. The
user will give the further process for the case, then the case goes to
next step. The case number will be removed from the datagrid. What I
am doing now, I am using a timer to check the database every 6
seconds. I am using ADO and Access database which is located on the
shared drive. It is still possible that two users could pick one same
case at same time. How do I avoid this conflict? Will it bring very
heavy network traffic if I change the time to refresh every second or
even less or you could give me a different solution? I have about 10
users who will connect with database all the time.
Thanks
joyo
My two cents...
In a 'general' table I have a field named InUse (Boolean).
When the first user doubleclicks for editing I check if
inUse = 1. If so, I display a message and skip.
If not, I write a 1 in InUse and let the user do his job.
After finishing I write again a 0 in InUse.
I use this method for real critical situations like
sending payments to the bank.
This method of course 'locks' the entire editing of all cases.
But if your cases are a limited number (10?) you could
think of 10 fields in that general table.
Bert.
.
- Follow-Ups:
- Re: How to avoid users pick same case
- From: Larry Serflaten
- Re: How to avoid users pick same case
- References:
- How to avoid users pick same case
- From: joyo2003us
- How to avoid users pick same case
- Prev by Date: Re: TTs output in gsm format
- Next by Date: RE: Q: Starting Existing VB6 Project in Vista
- Previous by thread: Re: How to avoid users pick same case
- Next by thread: Re: How to avoid users pick same case
- Index(es):
Relevant Pages
|
Loading