I'm trying to develop a form to record bank deposits for a small non-profit agency. The deposit records need to include the date and total amount and a variable number of contributions. Those contributions need to be recorded individually, showing the name of the contributor and the amount. The number of contributions will vary from one deposit to another.
I've created two tables, one for the deposit summary data (with fields for date and amount, entered by the user, and a deposit ID generated automatically by Access), and another for the individual contributions (with fields for the contributor's name, amount given, and the ID number of the deposit in which it was included).
I've created two forms: a main form to solicit the deposit summary data, and a sub-form to solicit the list of individual contributors and amounts. Almost all works as hoped. The only part I'm not getting is how to get Access to insert the deposit ID (from the main form's underlying table) into the data table with the individual contributions.
I have created a one-to-many relationship: one deposit summary to many individual contributions, linking the ID field in the deposit summary table to the deposit_ID field in the contributions table.
Where to I go from here to get that deposit ID number into the contributions table?