I need help developing a VBA function. I have the following two tables:
EVALUATIONQUESTION (contains 20 records/questions)
QuestionID Number(PK)
QuestionDescription Text
COURSEEVALUATION
CourseID Number(PK)
QuestionID Number(PK)
In the function, I want to pass in a CourseID. I then want to insert records into the CourseEvaluation table using the CourseID argument of the function and all the QuestionIDs in the EvaluationQuestion table. Therefore, there will be twenty records in all inserted into the CourseEvaluation table.
e.g. if the CourseID = 33
33 1
33 2
33 3
33 4
...
33 20
Any help would be much appreciated!
EVALUATIONQUESTION (contains 20 records/questions)
QuestionID Number(PK)
QuestionDescription Text
COURSEEVALUATION
CourseID Number(PK)
QuestionID Number(PK)
In the function, I want to pass in a CourseID. I then want to insert records into the CourseEvaluation table using the CourseID argument of the function and all the QuestionIDs in the EvaluationQuestion table. Therefore, there will be twenty records in all inserted into the CourseEvaluation table.
e.g. if the CourseID = 33
33 1
33 2
33 3
33 4
...
33 20
Any help would be much appreciated!