Microsoft Access cannot add records join key of table not in recordset

↘锁芯ラ 提交于 2019-12-24 18:54:33

问题


I know this is a repost, I have done my research on everything possible and I couldn't find anything to assist nor help me with my current problem. No matter how many times I re-create my Query or Form, I just can't seem to get it to work correctly. if I run my Query, I will get the correct information displayed, but when it comes to adding information through a custom form I made, I get this error -> "cannot add records join key of table not in recordset".

My current Query, incase you wanted to see. I only access vendorNoID from the vendor table. I require all the information from the rest of the tables.

I am able to enter information in this form for tbl_address and tbl_addressType, but I get the error for vendor / purchaseOrder. Any reason whats causing this?!?!

Any advice will be greatly appreciated


回答1:


The selected value of the vendor combobox got to be bound to [tbl_purchase_order].[vendorID]. To the table, where the selected value is the foreign key.

It's got to be the same as you already did with the address_typeID.




回答2:


The selected value of the vendor combobox got to be bound to [tbl_purchase_order].[vendorID]. To the table, where the selected value is the foreign key. (@VMai)

In my opinion, open the Query Builder of Form (as picture below), then add column [tbl_purchase_order].[vendorID]

/

Cause I don't have enought reputation for write comment, so I write down here. Hope it help ! ^^



来源:https://stackoverflow.com/questions/24893504/microsoft-access-cannot-add-records-join-key-of-table-not-in-recordset

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