Create a text box named txtSum in the header or footer of the subform.
Set the Control Source of this text box to =Sum([SalesInvoiceAmount]) and set its Visible property to No.
Create a text box named txtSum on the main form.
Set its Control Source to =[SubformName]![txtSum] where SubformName is the name of the subform as a control on the main form. This is not necessarily the same as the name of the subform in the navigation pane. Click once on the subform in the main form and check the Name property on the Other tab of the Property Sheet. This is the name to use.