Delete row from Access junction table via form -
i set subform listing stored values junction , lookup table. part working nicely (i can view stored entries or add new ones).
here relationships:
and here's layout of form showing attempted remove saved association. if delete contents of row in form, access returns when try save record: index or primary key cannot contain null value
the sql remove row console straightforward:
delete junction_model cust_id = x , model_id = y
removing row form proving not straightforward.
is there relatively easy way of doing form itself?
those little squares left of combo boxes (one of has "pencil" icon in it, indicating dirty record) "record selectors". clicking record selector select record, if hit delete record deleted.
it looks deleted contents of combo box. when went save (still-existing) record access objected because .value
of combo box null
, , primary key on junction table prohibits null
values [model_id].
Comments
Post a Comment