I have a form which allows users to enter details of a case. Each case can apply to multiple periods of offence and each period of offence could apply to multiple cases. As such, I have created three tables – one table called tblCase, another table called tblOffencePeriods and another table called tblCaseOffencePeriodLine. Each offence period can relate to different types of charges, so another table called tblOffence is linked into tblOffencePeriods to show what offence that particular period relates to.
In the form where the user can enter the case details, the record source of this form is based solely on tblCase. I then have a drop down box on the form which allows the user to enter the type of offence. This drop down box is based on table tblOffenceType. This table has a field which tells the database what offence it is (linked through another table called tblOffence, which in turn is linked through to tblOffencePeriods). So depending on what offence type the user chooses, I’m filling in a list box on the form with the different periods that relate to that type of offence.
What I’d like to do now is let the user choose the offence periods that relate to this case and then save the case ID and offence period ID to the tblCaseOffencePeriodLine. That way I can tell what periods of offence relate to that case. I’m unsure of how I achieve this. Should I have created a sub-form somewhere? I also want it so that when the user reopens the form, the periods they chose from the listbox are already highlighted.
Cheers,