K
Kelly
Need assistance from the experts. I used the following code to lock the
fields in a subform per a request. Now I have been request to lock all the
fields except two in the sub form and I am not sure how to handle this. I
tried enabled on the different fields but that did not correct the problem.
The goal is to enter data for that record and once an authorization date is
entered it would lock the record. Is there a way to allowedits and lock it
back if someone needs to change the field StructureKeymark? Thanks in advance
to assistance.
This is just a few lines for the main fields I'm trying to address
Option Compare Database
Private Sub StructureApprovedDate_Enter()
If IsNull([StructureApprovedDate]) Then
Form.AllowEdits = True
Else
Form.AllowEdits = False
End If
End Sub
Private Sub StructureKeymark_Enter()
If IsNull([StructureApprovedDate]) Then
Form.AllowEdits = True
Else
Form.AllowEdits = False
End If
End Sub
Kelly
fields in a subform per a request. Now I have been request to lock all the
fields except two in the sub form and I am not sure how to handle this. I
tried enabled on the different fields but that did not correct the problem.
The goal is to enter data for that record and once an authorization date is
entered it would lock the record. Is there a way to allowedits and lock it
back if someone needs to change the field StructureKeymark? Thanks in advance
to assistance.
This is just a few lines for the main fields I'm trying to address
Option Compare Database
Private Sub StructureApprovedDate_Enter()
If IsNull([StructureApprovedDate]) Then
Form.AllowEdits = True
Else
Form.AllowEdits = False
End If
End Sub
Private Sub StructureKeymark_Enter()
If IsNull([StructureApprovedDate]) Then
Form.AllowEdits = True
Else
Form.AllowEdits = False
End If
End Sub
Kelly