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:

enter image description here

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

enter image description here

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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -