Hi,
I'm looking for solution to update the textbox on the main form each time the textbox on subform is updated. I have "txtLastUpdate" textbox on the main form and "txtItemQuantity" textbox on the subform. I'm trying this code:
Private Sub txtItemQuantity_AfterUpdate()
Forms![frmMain]![txtLastUpdate] = Now()
End Sub
It works fine until I try to close the mainform when I get this message (attached). Any ideas what's wrong? Thanks.
I'm looking for solution to update the textbox on the main form each time the textbox on subform is updated. I have "txtLastUpdate" textbox on the main form and "txtItemQuantity" textbox on the subform. I'm trying this code:
Private Sub txtItemQuantity_AfterUpdate()
Forms![frmMain]![txtLastUpdate] = Now()
End Sub
It works fine until I try to close the mainform when I get this message (attached). Any ideas what's wrong? Thanks.