I am trying to delete the records in subform if the user changes mainwarehouse selection on mainform.
The code is as under
But i don't know how to complete so that I could fulfill my requirement. Kindly suggest.
The code is as under
Code:
Private Sub MainwarehouseFK_AfterUpdate()
If Not IsNull (Me.frmTransactionsSub!TransactionsDetailPK) then
MsgBox "Change of warehouse will clear the items, Are you sure you want to continue", vbYesNoCancel
But i don't know how to complete so that I could fulfill my requirement. Kindly suggest.