I have a form frmInvoice with Subform frmInvoiceMemos related by invoiceID field. After populating fields “ScheduledDate” and “ScheduledTime” of the main form, I need new record in subform as: “09/13/2005 10:23AM: Appointment scheduled for 09/15/2005, 1-5PM”
This is an approach I took, but it is not working:
Private Sub ScheduledTime_LostFocus()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmInvoiceMemos"
stLinkCriteria = "[InvoiceID]=" & Me![InvoiceID]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormAdd
Forms!frmInvoiceMemos.Memo = Me.ScheduledDate
Forms!frmInvoiceMemos.Memo = Me.ScheduledTime
DoCmd.Close
End Sub
Thanks