You want to set focus to it after the report opens.
DoCmd.SetWarnings False
DoCmd.OpenQuery "UpdateMasterInvoice", acViewNormal, acEdit
DoCmd.Close acQuery, "UpdateMasterInvoice"
DoCmd.OpenReport "Invoice", acViewPreview, , strWhere, acWindowNormal, strOpenArgs
DoCmd.Close acMacro...