G
Guest
Hi
I have a continuous subform. One of the fields is chkbox. When the
chkbox=Yes, I would like the AllowDeletions = No, for that row. If in the
next row the chkbox=No, than I would like the AllowDeletions = Yes.
The AllowDeletions default is Yes.
My code in the frmContinuousSubForm is as follows:
Sub Form_Current()
If me.chkbox = Yes Then
Forms!frmMain!frmContinuousSubform.Form.AllowDeletions = No
Else
Forms!frmMain!frmContinuousSubform.Form.AllowDeletions = Yes
End If
End Sub
The results have been unpredictable. At one time I would get the exact
opposite of what I wanted. I was able to delete the records where
chkbox=Yes. I reread code to make sure I did not inverse my yes/no criteria
but it looked correct.
Thanks for the help.
Charlie
I have a continuous subform. One of the fields is chkbox. When the
chkbox=Yes, I would like the AllowDeletions = No, for that row. If in the
next row the chkbox=No, than I would like the AllowDeletions = Yes.
The AllowDeletions default is Yes.
My code in the frmContinuousSubForm is as follows:
Sub Form_Current()
If me.chkbox = Yes Then
Forms!frmMain!frmContinuousSubform.Form.AllowDeletions = No
Else
Forms!frmMain!frmContinuousSubform.Form.AllowDeletions = Yes
End If
End Sub
The results have been unpredictable. At one time I would get the exact
opposite of what I wanted. I was able to delete the records where
chkbox=Yes. I reread code to make sure I did not inverse my yes/no criteria
but it looked correct.
Thanks for the help.
Charlie