【发布时间】:2016-01-15 20:53:27
【问题描述】:
我有一个子表单(连续表单),它在子表单页脚的文本框中显示费用的总和:
Text5 data =Sum(Fee).
这可以正常工作。我不能做的是在主窗体的另一个文本框中显示该值。我试过了
TFees = Forms!frmInvoice![frmInvoiceDetails].Form.Text5
这在 main from 上没有显示任何内容(Null?)。没有错误。我的子表单数据是:
SELECT
tblInvoiceDetails.InvoiceLookup,
tblInvoiceDetails.DiscLookup,
[ApplicantSurname] & ', ' & [ApplicantForenames] AS AppName,
[DBSFee]+[MyFee] AS Fee,
tblDisclosure.Client,
tblDisclosure.Payer
FROM
tblInvoiceDetails
INNER JOIN
tblDisclosure
ON tblInvoiceDetails.DiscLookup = tblDisclosure.ID
WHERE
(((tblDisclosure.Payer)='Client'))
ORDER BY
[ApplicantSurname] & ', ' & [ApplicantForenames];
【问题讨论】: