So I have the following setup:
tblStatements - a table with the following fields:
- StatementID
- StatementName
tblDateTypes - a table with the following fields:
- DateTypeID
- DateType
and the DateType records are a list of various date names such as:
1 Expiration Date
2 Due Date
3 Statement Date
4 Statement Received Date
5 Payment Received Date (etc.)
jctLinkStatementDates - a join table joining the above two tables via StatementID and DateTypeID fields and containing an additional field DateValue which holds dates associated with linked DateTypes and Statements
What I would like to do is create a form where I show a predetermined selection of date names from the DateType records - e.g. Statement Date and Statement Received Date - be able to enter dates for those date names, and both dates should be saved as new individual records in jctLinkStatementDates. So the records in JctLinkStatementDates should say:
(Record ID) (Statement ID) (DateTypeID) (Date Value)
(Record ID) (Statement ID) (DateTypeID) (Date Value)
e.g.
(1) (1) (3) (2/28/2022) [3 being the Statement Date]
(2) (1) (4) (3/28/2022) [4 being the Statement Received Date]
Is that possible?
Essentially, I am trying to have as much flexibility as possible with putting together different lists of date names/types, and with then putting together forms selecting subsets of those date names/types, and for each date entered for the date names/types in the subset to be saved as one record in the join table, linked to the correct date type/name in the tblDateTypes table and to the correct statement in the tblStatements table.