Hello,
I have a main form that can be updated using a subform. The subform has check boxes and when they are checked/unchecked the main form will change its status.
My subform is called frmStatusDetails and the main form is called SchedView. In SchedView, SchedStatus is a box on the form that lets the user know the approval status of a case. SchedStatus can change from "Approved" to "Unapproved-PM" "Unapproved-LB"...and other different types of Unapprove that I have specified.
This is only part of my code, but the rest follows the same logic:
The code is part of the subform, frmStatusDetails and I have the code to be the event procedure for the "after update" property of the check boxes.
Am I calling the main form incorrectly from the subform?
Thanks for your help
I have a main form that can be updated using a subform. The subform has check boxes and when they are checked/unchecked the main form will change its status.
My subform is called frmStatusDetails and the main form is called SchedView. In SchedView, SchedStatus is a box on the form that lets the user know the approval status of a case. SchedStatus can change from "Approved" to "Unapproved-PM" "Unapproved-LB"...and other different types of Unapprove that I have specified.
This is only part of my code, but the rest follows the same logic:
Code:
If Forms!SchedView!SchedStatus = "Approved" Then 'status is approved
If chkPM.Value = 0 Then 'check pm is one of the checkboxes
MsgBox " the PM has not approved", vbOKOnly
Forms!SchedView!SchedStatus = "Unapproved-PM" 'change status
End If
...more code for other conditions
End If
The code is part of the subform, frmStatusDetails and I have the code to be the event procedure for the "after update" property of the check boxes.
Am I calling the main form incorrectly from the subform?
Thanks for your help