M
mikeycan
Hello,
I have a form with several subforms that lists invoice information. Within
one of the subforms there is a check box that indicates if invoice is
complete. I am trying to lock the forms from update if the check box is
checked. I have searched through the Access Discussions groups and some VB
code. I tried to drop in my form names, but is does not work. It only works
on the subform with the check box, but not on any of the other related
subforms. What am I doing wrong?
Parent: [frmRA – Invoices]
Subforms : [frmRA - Invoice Attributes]
[frmRA - Invoice by Revenue Category]
[frmRA - Invoice Deferrals]
[frmRR - Order Review Details]
Code:
Private Sub Form_Current()
If Forms![frmRA - Invoices]![frmRA - Invoice Attributes]![InvoiceComplete] =
True Then
Me.AllowEdits = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowDeletions = True
End If
End Sub
I have a form with several subforms that lists invoice information. Within
one of the subforms there is a check box that indicates if invoice is
complete. I am trying to lock the forms from update if the check box is
checked. I have searched through the Access Discussions groups and some VB
code. I tried to drop in my form names, but is does not work. It only works
on the subform with the check box, but not on any of the other related
subforms. What am I doing wrong?
Parent: [frmRA – Invoices]
Subforms : [frmRA - Invoice Attributes]
[frmRA - Invoice by Revenue Category]
[frmRA - Invoice Deferrals]
[frmRR - Order Review Details]
Code:
Private Sub Form_Current()
If Forms![frmRA - Invoices]![frmRA - Invoice Attributes]![InvoiceComplete] =
True Then
Me.AllowEdits = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowDeletions = True
End If
End Sub