I am trying to create a database to record notes about what I read. I have set up three tables that I want to deal with right now: sources, authors, and source_authors. The table sources contains the title of the source (a book or an article etc.), and a sourceid. The authors table contains first name, last name, and authorid. Since a source can have multiple authors and an author can have multiple sources (books), I use a third table to store the connections between these. This is the source_authors table, with only three columns: sources_authorsid, sourceid, and authorid. A screenshot of the relationships is attached: I would like to make a form for entering a new source. To see how all the parts work, I used the wizard to make a main form that includes all the fields from sources, and a subform that includes all the fields from source_authors. These are linked on the sourceid field. With the subform selected in Form Navigator, I created another subform that includes all the fields from the authors table. This subform is linked to the first subform on the authorid field. A screenshot of this form is attached: Problems:
- The first source shows up correctly. It displays the correct source_authors indices, and displays the correct author. The second source does not show up correctly. When the second source is displayed, the correct source_authors indices are displayed, but the author does not show up.
- Entry acts strangely. I can enter a new source, but when I tab from the source title, something flashes in the source_authors boxes, and it goes to a new record. If I visit the sources table, the new source is listed. If I open the form again and go to this new source, I can't enter an author's name unless I make up a new authorid in the source_authors fields.