Domain aggregate might not be needed. Are you using the start and end dates to filter the subform recordset? Do you want to display the minimum and maxium invoice numbers of that filtered dataset?
Expression in textbox of form header or footer can be:
=Min([InvoiceNum])
=Max([InvoiceNum])
This will return the minimum and maximum invoice numbers for the filtered dataset on the form.
Put these textboxes in the subform. However, since the subform is in Datasheet view, will need textboxes on the main form that reference the textboxes on the subform.
=[subformcontainername].Form.[textboxname]
Otherwise, the domain aggregate would be:
=DMin("InvoiceNum", "InvoiceT", "InvoiceDate BETWEEN #" & [StartDate] & "# AND #" & [EndDate] & "#")
Sort order has no bearing on these expressions.
How are you filtering the subform? Method I prefer:
http://www.allenbrowne.com/ser-62.html