Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在报告中显示每次生成的数字,并在每次更新到表单页面时显示它
您可以像处理表单一样引用报告。有一个 Reports-Collection,就像 Forms-Collection 一样,一个报表有一个 Controls-Collection,就像一个表单。
Reports.Item("MyReportName").Controls.Item("ControlNameOnReport")
或短爆炸版本:
Reports!MyReportName!ControlNameOnReport
但是您应该将值的生成提取到公共函数并在必要时调用该函数。