ms-access:为什么这种关系不起作用?
今天刚开始了解ms access数据库之间的关系。谁能弄清楚为什么这不起作用?
我可以用我的方式解释很多,但我认为图片说明了超过 1000 个单词
just started today understanding relations between ms access databases. Can anyone figure out why this isnt working?
I can explain a lot in my way, but I think that the pictures says more then 1000 words
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置关系后,您会在数据表(第三张图片)中看到小加号,当您单击该符号时,您会看到具有匹配关系字段(列)的所有记录。如果没有匹配的记录,您可以添加它们,以星号(*)表示。
加号只会显示相关记录。如果您使用了关系完整性,则只能将具有与“一个”表相同的外键(匹配字段)的记录添加到“多”表中。使用表格不是一个好主意,您应该使用表单。如果您设置基于“一个”表的表单并添加基于“多”表的子表单,则将自动填写外键(向导将为您设置链接子字段和主字段)。
When you have a relationship set up, you get the little plus sign in your datasheet (third picture) and when you click the sign, you see all records with a matching relationship field (column). If there are no matching records, you can add them, which is indicated by the asterisk (*)
The plus sign will only show related records. If you have used relational integrity, you can only add records to the 'many' table that have an identical foreign key (matching field) to the 'one' table. It is not a good idea to work with tables, you should use forms. If you set up a form based on the 'one' table and add a subform based on the 'many' table, the foreign key will be filled in automatically (the wizard will set the link child and master fields for you).