Question : MS access lock form fields

Hi I have a continuous form with 4 fields on it .
So If the data is present in the one field or in all the fields that whole record ( Means all the fields in that record) should be locked.
then the control goes to the second row, then all the fields should be available for the user to enter the data because its a new row . Please Help me as soon as possible. Thank You.

Answer : MS access lock form fields

Put this in the Form Current Event:

Private Sub Form_Current()
If Me.NewRecord = True Then
    Me.AllowEdits = True
Else
    Me.AllowEdits = False
End If
End Sub

mx
Random Solutions  
 
programming4us programming4us