Hello
I would like to call the AfterUpdate event in a subform from the code module of another form.
Main Form Name: frmEditOccupiedBeds
Container Control Holding Subform: ctlSubform
Subform Name: subfrmEditBeds
Subform Control Name: txtFirstNight
If you are wondering what I am doing, here is a quick rundown. A date picker is passed variables ( optional, so I can use the date picker anywhere ) such as form name, control name etc when initiated by the GotFocus Event of a bound textbox. The date is then inserted into the textbox as a date picker normally would. The afterupdate event of the textbox does not fire because it is populated by VBA, so I want to trigger the correct event for the correct subform based on the passed variables from the datepicker, dependent on whether there are variables. Therefore could someone please tell me the correct structure of the line of code I need to write.
Thanks in advance.
I would like to call the AfterUpdate event in a subform from the code module of another form.
Main Form Name: frmEditOccupiedBeds
Container Control Holding Subform: ctlSubform
Subform Name: subfrmEditBeds
Subform Control Name: txtFirstNight
If you are wondering what I am doing, here is a quick rundown. A date picker is passed variables ( optional, so I can use the date picker anywhere ) such as form name, control name etc when initiated by the GotFocus Event of a bound textbox. The date is then inserted into the textbox as a date picker normally would. The afterupdate event of the textbox does not fire because it is populated by VBA, so I want to trigger the correct event for the correct subform based on the passed variables from the datepicker, dependent on whether there are variables. Therefore could someone please tell me the correct structure of the line of code I need to write.
Thanks in advance.