如何以子表格显示参考详细信息(最好是只读) [英] How do you display reference details (preferably read only) in a sub form

查看:94
本文介绍了如何以子表格显示参考详细信息(最好是只读)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有Order Header(tblOrder)的表单和一个由OrderNumber链接的订单产品系列(tblOrderProd)的子表单。问题在于,当输入产品时,所有"用户友好的参考"都是"用户友好的参考"。有关产品的详细信息(名称,颜色
等)在另一个表格上,即tblProduct。

I have a form with Order Header (tblOrder) and a sub form with order product lines (tblOrderProd) linked by the OrderNumber. The problem is that when a product is entered, all the "user friendly reference" details about the product (name, colour etc) are on another table ie tblProduct.

那么如何显示参考详细信息,最好只能以子表格形式阅读?

So how do you display reference details preferably read only in a sub form?

推荐答案

我建议只需将子表单绑定到表tblOrderProd并使用一个表格,而不是使用组合子表单的两个单独表的查询。基于tblProduct的Combobox用于选择产品。

Rather than use a query combining the two separate tables for the subform, I would recommend just binding the subform to the table tblOrderProd and use a Combobox based on tblProduct for selecting the product.

创建Combobox时,请在下拉列表中包含所有参考详细信息。然后,您可以使用Column()属性在子窗体上的未绑定文本框中显示引用详细信息。例如:

When you create the Combobox, include all the reference details in the dropdown. You can then use the Column() property to display the reference details in unbound textboxes on the subform. For example:

= [ComboboxName]。[Column](1)

=[ComboboxName].[Column](1)

希望有帮助...


这篇关于如何以子表格显示参考详细信息(最好是只读)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆