I've tried faq181-291 's code and it works great for independant forms. But how do you make it work for subforms? I have a main form called InclusionExam. This has a subform embedded in it called frmIESection1. The code below is the code I have for frmIESection1's before_update method. The line that's been commented out only works if the form is loaded as an independant form.
I'm getting an error saying that the form I'm referencing doesn't exist!
Please help.
Private Sub Form_BeforeUpdate(Cancel As Integer)
'Call basLogTrans(Me, "PID", PID) ' standalone mode.
Call basLogTrans(Forms!InclusionExam!frmIESection1.Form, "PID", PID)
End Sub
I'm getting an error saying that the form I'm referencing doesn't exist!
Please help.
Private Sub Form_BeforeUpdate(Cancel As Integer)
'Call basLogTrans(Me, "PID", PID) ' standalone mode.
Call basLogTrans(Forms!InclusionExam!frmIESection1.Form, "PID", PID)
End Sub