Hello.
I made this database, based on Duane Hookum's "At Your Survey" design.
It was made for medical survey-questionnaire responses. It is attached with some sample data so you can see what I am talking about more easily
One of the tables, "questionTable", lists all of the questions (text, type of question, default response, etc), and the survey each question belongs to.
For questions that have a pre-defined list of answers, a relationship exists between questionTable, and responseListTable.
They are joined (1:m) by QID - and autonumber pk of questionTable.
I have a form "SurveyDesignForm", which is used to create each survey, the questions for that survey, and the response lists for each appropriate question. For each question on the form, you can click the "View" label to make entries to the "responseListTable", based on that QID.
My dillema is this:
There are often MANY questions that require a predefined response of
0 No
1 Yes
99 Unknown/Missing
Rather than manually entering, or copying and pasting this, for every question, is there a way to automate entering those items into the responseListTable for each question with a 'responseType' of 'YesNo'? (You will see what I mean when you look at 'SurveyDesignForm')
I was thinking a loop with a SQL insert maybe? But I am not sure of the syntax needed for that...
any insight is appreciated
I made this database, based on Duane Hookum's "At Your Survey" design.
It was made for medical survey-questionnaire responses. It is attached with some sample data so you can see what I am talking about more easily
One of the tables, "questionTable", lists all of the questions (text, type of question, default response, etc), and the survey each question belongs to.
For questions that have a pre-defined list of answers, a relationship exists between questionTable, and responseListTable.
They are joined (1:m) by QID - and autonumber pk of questionTable.
I have a form "SurveyDesignForm", which is used to create each survey, the questions for that survey, and the response lists for each appropriate question. For each question on the form, you can click the "View" label to make entries to the "responseListTable", based on that QID.
My dillema is this:
There are often MANY questions that require a predefined response of
0 No
1 Yes
99 Unknown/Missing
Rather than manually entering, or copying and pasting this, for every question, is there a way to automate entering those items into the responseListTable for each question with a 'responseType' of 'YesNo'? (You will see what I mean when you look at 'SurveyDesignForm')
I was thinking a loop with a SQL insert maybe? But I am not sure of the syntax needed for that...
any insight is appreciated