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 ids , 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

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -