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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing value using OnCurrent

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
At the moment I have the following code on the OnCurrent Event of a datasheet.

Code:
Forms!frmLeads!frmLeadsSubForm.Form!TempAdviserLock = "Locked"

Which essentially locks the record so it wont appear in a query list whislt someone is in the record.

What I want to do is move it back to "Free" when they move to another record. However, this would conflict with the above code.

Is there a better way to lock the record that the user has selected so no one else can make changes to it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top