I'm a novice Access user; hope there is a simple answer to my dilemma.
I'm designing a database to track audits. I have four tables:
Checklists, keyed on checklist_ID
Questions, keyed on question_ID. Linked to Checklists by checklist_ID. Many questions to one checklist.
Audits, keyed on audit_ID. Linked to Checklists and Questions by checklist_ID. An audit consists of answers to the questions on a checklist.
Answers, keyed by answer_ID. Linked to Questions by question_ID (1 question to many answers) and to Audits by audit_ID (1 audit to many answers).
I have a form that allows edit of an audit. Main form is from Audits, subform is from Answers, with supporting information pulled from Questions.
My problem is when creating a new audit. The above form does not work because there are no Answers records yet. I want to automatically create records in Answers and then have the auditor populate the fields.
The algorithm I want is:
This does not sound like an unusual situation, but like I said I'm a novice to Access and it has my stumped. I've gotten close with a form that has two subforms for questions and answers, but the result fields were not editable.
- Create a new Audits record and specify the checklist_ID.
- For each question_ID corresponding to checklist_ID, create a record in Answers, linked to the new audit_ID and the source question_ID. Audit results fields in Answers will be <null>.
- Edit the audit as described above. Auditor will see all the questions in the checklist with <null> results and proceed to replace the results with real data.
Appreciate any advice.