I know this has got to be a simple reference problem, but I just can't figure it out. I am trying to pass a nested subform to a procedure, but I keep getting a type mismatch error. Here's an example:
Code:
Call MyProcedure(Forms!MainForm.Form!Subform1.Form!Subform2)
Public Sub MyProcedure(frm as Form)
.
.
End Sub