I need to select a record, assign it to a user so no one else can grab it. I am having a terrible time with duplicate records showing up on several machines. I am using VB6 and SQL Server 2000 on an NT 4 workstation.
Not sure from your description if this is exactly what you're trying to do, but I'll give it a shot.
I'm thinking that what you want to do is to make it so your users only see the records they created (like their sales leads for instance). To do this I would add a field to the table called CreatedBy and then when a record is created I would grab the userID of the creator and put it in this table. Then I would filter the records they see in their user interface by this field.
Go to SQL Books ONline and search for USER for several ways to get the user information.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.