MS Access Subform with fields with #Error in form view

前端 未结 2 1132
南方客
南方客 2021-01-27 14:24

MS Access 2003.

I have a query behind a subform that has a sql statement like this:

SELECT ClientTotalInvoiceLineItems.*
     , CDate(GetWeekEnding([Week         


        
相关标签:
2条回答
  • 2021-01-27 14:46

    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.

    0 讨论(0)
  • 2021-01-27 15:03

    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.

    0 讨论(0)
提交回复
热议问题