"Peter Wong" <thebeeshop@yahoo.com.NOSPAM>'s wild thoughts
were released on Fri, 14 Dec 2007 13:59:35 +0800 bearing the
following fruit:
>Hi All,
>
[quoted text clipped - 6 lines]
>Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001".
>So Now User 2 Should not be able to use the 1001 Employee.
Actually he should, since user 1 is not using that record.
User1 should lock that record, then when user 2 tries to
lock it, it wail fail as the record is already locked and
you can warn user 2.
>If He Try to open
>that then he should get the Above message. But he should be able to open any
>other records.
And he will providing a single row can be locked, assuming
EMPID is a unique index this wouldn't be a problem.
> And Also When the User 1 will Say "Update" or "Cancel" then
>the user 2 should be able to open 1001.
>I am New to Multiuser programming in ADO. Please Guide me.
Take a look at transactions.
--
Jan Hyde
https://mvp.support.microsoft.com/profile/Jan.Hyde
Peter Wong - 15 Dec 2007 02:03 GMT
Thank you vey much Jan Hyde.
Regards,
Peter
> "Peter Wong" <thebeeshop@yahoo.com.NOSPAM>'s wild thoughts
> were released on Fri, 14 Dec 2007 13:59:35 +0800 bearing the
[quoted text clipped - 33 lines]
>
> https://mvp.support.microsoft.com/profile/Jan.Hyde