简体   繁体   English

Microsoft Access-Masterform组合框关闭子窗体中的组合框

[英]Microsoft Access - Combo box in subform base off masterform combo box

I have a Masterform , which handles all the information header of a ReceivingReport . 我有一个Masterform ,它处理ReceivingReport所有信息标头。 You must select a PO Number from a combo box, and fill out the necessaries information as well. 您必须从组合框中选择一个PO Number ,并填写必要信息。 Everything works fine up to this point. 到目前为止,一切正常。

My subform on the other hand works if I keep it very basic but I want my second combo box located in my subform ; 另一方面,如果保持基本状态,我的subform将起作用,但是我希望second combo box位于subform which is base off the ID from the first combo box in the masterform to display only items from the PO Number ID . 这是基于masterform first combo boxID ,仅显示PO Number ID

I know my Query isn't working, since its not even displaying a record. 我知道我的Query无法正常工作,因为它甚至没有显示记录。 But I can't seem to understand how to pull the information from the masterform combo box to use it correctly to retrieve the correct data . 但是我似乎无法理解如何从masterform组合框中提取信息以正确使用它来检索正确的data

As you can see in the query image, I was using this to retrieve the bound column PurchaseOrderID from the first combo box . 如您在查询图像中看到的,我正在使用它从第first combo box检索绑定列PurchaseOrderID

[Forms]![frm_addReceiveReportInformation].[Form]![cbo_PurchaseOrderID]

在此处输入图片说明在此处输入图片说明

[Forms]![frm_addReceiveReportInformation].[Form]![cbo_PurchaseOrderID] [表格]![frm_addReceiveReportInformation]。[表格]![cbo_PurchaseOrderID]

should be 应该

[Forms]![frm_addReceiveReportInformation]![cbo_PurchaseOrderID] [表格]![frm_addReceiveReportInformation]![cbo_PurchaseOrderID]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM