MS Access 2003.
I have a query behind a subform that has a sql statement like this:
SELECT ClientTotalInvoiceLineItems.*
, CDate(GetWeekEnding([Week
I know one possible error is that you haven't correctly nested the forms;
The main "container" form that it's on needs to be included in the statement like
[forms]![frmClientTotalInvoices]![frmClientTotalInvoicesSub].[Form].[NewRecord]
I'm assuming that frmClientTotalInvoices
is the largest container of the form.
There are a few methods of handling this, but one method is to have the record source of the subform initially empty, and then fill in the record source on the after insert event of the main form.