Lock record for delete (bolean)

Gregof1976

Registered User.
Local time
Today, 13:17
Joined
Mar 28, 2011
Messages
44
On current event I have some code that locking record for edition depending on the flag (bolean).I would like as well lock this line for deleting depending on the flag. Can someone give me some tip how to do this?

Code:
Private Sub Form_Current()
 
If Me.approved = True Then
    Usluga.Locked = True
 
 Else
   Usluga.Locked = False
 End If
 If Me.NewRecord Then
    Usluga.Locked = False
   Else
 
End If
End Sub
 
I found solution. Request for help is not requested anymore :-)
Code:
Me.AllowDeletions = False
 

Users who are viewing this thread

Back
Top Bottom