dbTalk Databases Forums  

Multiuser problem

comp.database.ms-access comp.database.ms-access


Discuss Multiuser problem in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sonet
 
Posts: n/a

Default Multiuser problem - 12-05-2003 , 09:17 AM






Hi all, i hope will not be a stupid question, anyway here is the
problem. More then 10 user are connected to an application written
with VB and using ADO.They have to select a records based on the
minimum value of a integer field and then set a flag on a boolean
field. Here is a code sample:
UPDATE tablename SET stato = true,user=username
WHERE id_call=(SELECT Min(id_call) FROM tablename HAVING
(((stato)=False) AND ((country)=id_country)

I made that query because i wanna be sure that only one user has set
that particular record...thinking that query will do in a atomic pass.
But, and here is the problem, sometimes users select the same record
and i don't know how! I checked all the whole procedure and if access
make query one after other in a kind of queue, and the query written
above is atomic, i don't understand where is the problem.

Thanks a lot to anybody will try to help me.

Sonet

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.