无法在未绑定的表单之间建立链接 [英] can't build a link between unbound forms
问题描述
我的数据库中有两个表,分别为Person
和Action
. Person
与Action
具有一对多关系.
I have two tables in my database, Person
and Action
. Person
has a one-to-many relationship with Action
.
我正在尝试构建具有Person
形式和Action
形式的Main
形式,以便在单击Person
的条目时,在Action
中的相应条目出现在Action
子窗体中.
I'm trying to build a Main
form that has a Person
form and an Action
form on it, so that when an entry for Person
is clicked on, the corresponding entries in Action
show up in the Action
subform.
但是当我在设计模式下查看Main
并在Action
子窗体的属性中单击链接主字段"时,出现以下错误消息:
But when I view Main
in Design mode, and click 'Link Master Fields' in the properties for the Action
subform, I get this error message:
Can't build a link between unbound forms.
如何设置这种主子关系?
How can I set up this master/child relationship?
推荐答案
您只能链接已绑定数据的表单.真的,我怀疑您希望Action
表单是Person
的子表单,而不是让它们都成为主"表单的同级子表单.
You can only link form which have data bound to them. Really I suspect you want your Action
form to be a subform of Person
not for both of them to be sibling child forms of a "main" form.
这篇关于无法在未绑定的表单之间建立链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!