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

lock row in continuous form? 1

Status
Not open for further replies.

Pampers

Technical User
Apr 7, 2004
1,300
AN
Hi everyone,
Is it possible to lock rows (for editing) in a continuous form if they meet a specific criterium??

Pampers [afro]
Just back from holiday...
that may it explain it.
 
Probably need to give some specifics on this. You can use the on current event. Example

Private Sub Form_Current()
If Me.strFld1 = "Test" Then
Me.AllowEdits = False
Else
Me.AllowEdits = True
End If
End Sub

In this example once I enter the value "Test" in a field it is pretty much locked.
 
Hi Majp,
That is very good. Just what I was looking for. I didn't know that AllowEdits would work like that. Tnx.

Pampers [afro]
Just back from holiday...
that may it explain it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top