Binding a combobox in subform Access

2019-06-03 04:00发布

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条回答
地球回转人心会变
2楼-- · 2019-06-03 04:41

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

A combo on a subform

The relationships

relationships for the tables

查看更多
登录 后发表回答