I have the following bit of VBA which works like a charm :
However, if I try to use this code on a different tab control it just doesn't work.
I get Runtime Error 424 object required.
I guess I am asking how to reference one subform from another?
Code:
With CallNotes.Form.RecordsetClone
.AddNew
!CustomerRef = Me!CustomerRef
!Who = Forms.markswitchboard!Text52
!Date = Now()
!Notes = "Final Deposit Due on" & " " & FinalDepositDueDate
!DiaryDate = FinalDepositDueDate + 1
.Update
End With
However, if I try to use this code on a different tab control it just doesn't work.
I get Runtime Error 424 object required.
I guess I am asking how to reference one subform from another?