Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I select a record and immediatly assign it

Status
Not open for further replies.

ynnepztem

Programmer
Aug 2, 2001
54
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top