Binding a combobox in subform Access

笑着哭i 提交于 2019-12-08 04:43:29

问题


I have a subform which has the correct Source Object, Link Master field and Link Child field parameters.

I can create a combobox in the subform which shows the correct information in the drop down menu (same table as the source object of the subform), but is unbound and does not update the record in the main form.

Does anyone know how this might be fixed?

(note the relationship between Master and Child is over multiple tables, but has referential integrity and cascade updates enabled)


回答1:


The fact that the combo is on a subform is not relevant in this case. The wizard will set everything for you, but the rule for binding a control is to set the Control Source. For example, your subform contains a list of places by PlaceID and you wish to update it using a combo that shows the user a list of place names in a combo.

 Control Source: PlaceID
 Row Source    : SELECT ID, PlaceName FROM Places ORDER BY PlaceName
 Bound Column  : 1
 Column Count  : 2
 Column Widths : 0; 2cm

The relationships



来源:https://stackoverflow.com/questions/11793726/binding-a-combobox-in-subform-access

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