I am trying to create forms to facilitate data entry in a many to many relationship. Using Access 2010.
I am currently working with three tables: a table of images, a table of documents, and a linking table between the two.
tblImages: ImageID* (autonum), URL (text)
tblDocs: DocID* (autonum), etc.
tblLINKImageDoc : ImageID* (num), DocID* (num)
frmImages contains a subform based on the linking table. What I want to do when I press a cmdbutton is create a new record in the the documents table, save it, then add a record to the linking table which = ImageID of the record I have open when I press the button + DocID of the newly created record. Then it should open a form where I can edit the newly created document record (frmDocs). When I close frmDocs, it updates frmImages.
Any help would be appreciated. If you need more information, I will do my best.
I am currently working with three tables: a table of images, a table of documents, and a linking table between the two.
tblImages: ImageID* (autonum), URL (text)
tblDocs: DocID* (autonum), etc.
tblLINKImageDoc : ImageID* (num), DocID* (num)
frmImages contains a subform based on the linking table. What I want to do when I press a cmdbutton is create a new record in the the documents table, save it, then add a record to the linking table which = ImageID of the record I have open when I press the button + DocID of the newly created record. Then it should open a form where I can edit the newly created document record (frmDocs). When I close frmDocs, it updates frmImages.
Any help would be appreciated. If you need more information, I will do my best.
Comment