无法在未绑定的表单之间建立链接 [英] can't build a link between unbound forms

查看:102
本文介绍了无法在未绑定的表单之间建立链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库中有两个表,分别为PersonAction. PersonAction具有一对多关系.

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屋!

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