join - Microsoft Access: Getting current record & creating child record before insert -
in access, i'd give user datasheet form key in data. datasheet merges 2 tables together, parent (product
) , child (book
). i've linked them using id
s , share 1-to-1 relationship. however, while entering data, long key in book
data, following error message shows up:
you cannot add or change record because related record required in table product.
and clueless do, thought giving administrator-only metadata product
table help. when set "book" , create new row in product
, data macro programatically create corresponding row same id
in book
table. sound feasible?
anyway, need retrieve id
of current record of book
before insertion, wonder how'd able that.
make sure foreign key (=field table linked parent table) of book
table included in underlying query.
Comments
Post a Comment