Hello,
When I add a new applicant to my table I would also like to add a number of records to a checklist table.
My tables are:
tbl_Applicant with unique identifier of AppId
tbl_ChecklistApp with fields as follows:
AppIdLink - Unique foreign ID link
AppItem - This contains the Check item I want to add - such as "Passport seen"....etc..
AppCheck - This will allow the user to later fill in Yes, No, N/a etc...
So each time I add a new record to tbl_Applicant, I want to add records into the tbl_ChecklistApp, ensuring that the AppID is also added.
I have achieved this by using a simple insert statement for each AppItem I want to add.
I would prefer however to keep all the checklist items in a separete table (tbl_Checklist_Item) for ease of maintenance and so I would like to build code to do the following.
When I add a new Applicant:
To loop through the tbl_Checklist_Item and add a new record into tbl_ChecklistApp for each item, ensuring that the current AppID is added to each inserted record.
This way I am able to have a check list for each new applicant I add & also have a way to easily maintain the contents of the checklist.
Many thanks for your help - Mark
When I add a new applicant to my table I would also like to add a number of records to a checklist table.
My tables are:
tbl_Applicant with unique identifier of AppId
tbl_ChecklistApp with fields as follows:
AppIdLink - Unique foreign ID link
AppItem - This contains the Check item I want to add - such as "Passport seen"....etc..
AppCheck - This will allow the user to later fill in Yes, No, N/a etc...
So each time I add a new record to tbl_Applicant, I want to add records into the tbl_ChecklistApp, ensuring that the AppID is also added.
I have achieved this by using a simple insert statement for each AppItem I want to add.
I would prefer however to keep all the checklist items in a separete table (tbl_Checklist_Item) for ease of maintenance and so I would like to build code to do the following.
When I add a new Applicant:
To loop through the tbl_Checklist_Item and add a new record into tbl_ChecklistApp for each item, ensuring that the current AppID is added to each inserted record.
This way I am able to have a check list for each new applicant I add & also have a way to easily maintain the contents of the checklist.
Many thanks for your help - Mark