0

我有一个带有订单的访问表和一个带有 itemId 的子表。它有一对多的关系。

我想创建一个将 itemId 添加到选定订单(已经存在)的表单。

这就是我期望它的样子:

Order:        [            ]
ItemId:       [            ]
Measurement1: [            ]
Measurement2: [            ]

        [Save-button]

谁能帮我这个?

4

2 回答 2

1

Subforms are the politically correct way to go IF you want users to have access to the order screen. If users do not need access to the order details directly, only to items, then you could put a combo-box for

 Order: [              [V]]

which has its control source as a query for your order ID in the orders table. Link that to your Orders field in the Item table and it will store the order as a subform would, without letting the user see details of the order.

However, if you want multiple items shown for a selected order, use subforms (having a subform which is multiple-item)

于 2012-06-04T15:51:25.943 回答
1

查看子表单。订单表将用于主窗体,项目将位于子窗体上。Access 在处理 Items 记录中的 OrderID 键方面做得很好。

于 2012-06-04T15:07:17.580 回答