can't build a link between unbound forms

被刻印的时光 ゝ 提交于 2019-12-25 07:29:38

问题


I have two tables in my database, Person and Action. Person has a one-to-many relationship with 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.

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?


回答1:


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.




回答2:


I know this thread is two years old but, as I was facing the same issue, I found that it actually is possible to link two unbound forms.

The trick is simply to input the master and child fields manually in Design mode without lauching the MS Access 'Link Master Fields' routine.

For example, I used the following to link two unbound forms on two separate criteria:

Master fields: tsObjectID;obObjectID [;etc.]
Child fields: tsObjectID;obPackagingUnitID [;etc.]


来源:https://stackoverflow.com/questions/23394255/cant-build-a-link-between-unbound-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!