bostonfrog
Programmer
I have read several posts here regarding this run-time error, but alas they haven't helped me. I am trying to insert a date from a popup-dialog into the date control of a subform. The button that inserts the date doesn't recognize the existence of the parent object --let alone worrying about the subform. I have tried coding this both explicity and implicitly, and it still doesn't recognize this "object referenced in Visual Basic Code."
' SelectDate is the name given to the calendar control.
' sfrmAppointments is the subform.
VBA doesn't recognize the object reference to "frmPatients", which is the parent control. The name is correct, and there is no misspelling. The form's HasModule is set to "Yes".
Code:
cmdInsertDate_Click()
' sfrmAppointments is the subform.
Code:
Forms!frmPatients.sfrmAppointments!Date = SelectDate.Value
End Sub
VBA doesn't recognize the object reference to "frmPatients", which is the parent control. The name is correct, and there is no misspelling. The form's HasModule is set to "Yes".