V
Vsn
Hi all,
I have a continious form on which some records are 'open' for edit and
others aint depending on the flag . Now I thought I could handle that with
the code shown below. Unfortunatly the code does not do the job.
Could anyone suggest a methode which could do it?
Private Sub Form_Current()
'Check ik record is locked if YES dont allow edits to the form detail
section
Dim cntl As Control
If Me.fPayCheck = True Then
For Each cntl In Me.Detail.Controls
AllowEdits = False
Next
Else
For Each cntl In Me.Detail.Controls
AllowEdits = True
Next
End If
End Sub
Thanks a lot,
Ludovic
I have a continious form on which some records are 'open' for edit and
others aint depending on the flag . Now I thought I could handle that with
the code shown below. Unfortunatly the code does not do the job.
Could anyone suggest a methode which could do it?
Private Sub Form_Current()
'Check ik record is locked if YES dont allow edits to the form detail
section
Dim cntl As Control
If Me.fPayCheck = True Then
For Each cntl In Me.Detail.Controls
AllowEdits = False
Next
Else
For Each cntl In Me.Detail.Controls
AllowEdits = True
Next
End If
End Sub
Thanks a lot,
Ludovic