K
Katherine Pegors
Hi,
I'm trying to write a database to store surveys. The problem is that
different questions have different numbers of sub-parts. For each
sub-part, the person gives a response from 1 to 5 as well as comments
for the whole question. For example (not the real survey)
**************************************************************
1 = don't like; 2 = could be worse; 3 = ok; 4 = pretty well; 5 = a lot!
1) How much do you like eating...
a) Breakfast [4]
b) Lunch [1]
c) Dinner [5]
Comments: I hate lunch!
2) How much to you like cooking...
a) Breakfast [3]
b) Lunch [1]
c) Dinner [1]
Comments: Cooking dinner is a pain because it takes forever
3) How much do you like driving your car? [5]
Comments: I love my Chevy!
4) How much do you like these teams?
a) Red Sox [5]
b) NY Yankees [1]
c) Mariners [3]
d) St. Louis Cardinals [2]
Comments: The curse is over for the Sox!
5) How often do you watch these teams play?
a) Red Sox [5]
b) NY Yankees [5]
c) Mariners [3]
d) St. Louis Cardinals [4]
Comments: [None]
**************************************************************
An additional complication is that there are 4 types of surveys, where
each survey type includes only some of the total number of questions.
I am trying to make a separate table for each question type that
contains the response options, such as:
tblQType1
******
SurveyID
QuestionNum
Breakfast
Lunch
Dinner
comments
******
and have a separate list of questions:
tblQuestionList
************
QuestionNum
QuestionText
QType (1-4)
SurveyType1 (y/n)
SurveyType2 (y/n)
SurveyType3 (y/n)
SurveyType4 (y/n)
************
Is there a way to link the QType field in tblQuestionList to a
particular table, for example to tblQType1? The goal being to make a
form that looks something like the survey. Or maybe there is just a
better way of doing things altogether?
The only other thing I can think of is make each response possible for
each question and simply don't fill out the irrelevent ones.
i.e.
tblQuestionList
***************
QuestionNum
....
SurveyType4
Breakfast
Lunch
Dinner
Generic [ for the single sub-part questions]
Red Sox
NY Yankees
Mariners
St. Louis Cardinals
Comments
****************
This could work in my case, but it seems like it would quickly become
cumbersome for anything more complicated.
Sorry for the long post and thanks,
Katherine
I'm trying to write a database to store surveys. The problem is that
different questions have different numbers of sub-parts. For each
sub-part, the person gives a response from 1 to 5 as well as comments
for the whole question. For example (not the real survey)
**************************************************************
1 = don't like; 2 = could be worse; 3 = ok; 4 = pretty well; 5 = a lot!
1) How much do you like eating...
a) Breakfast [4]
b) Lunch [1]
c) Dinner [5]
Comments: I hate lunch!
2) How much to you like cooking...
a) Breakfast [3]
b) Lunch [1]
c) Dinner [1]
Comments: Cooking dinner is a pain because it takes forever
3) How much do you like driving your car? [5]
Comments: I love my Chevy!
4) How much do you like these teams?
a) Red Sox [5]
b) NY Yankees [1]
c) Mariners [3]
d) St. Louis Cardinals [2]
Comments: The curse is over for the Sox!
5) How often do you watch these teams play?
a) Red Sox [5]
b) NY Yankees [5]
c) Mariners [3]
d) St. Louis Cardinals [4]
Comments: [None]
**************************************************************
An additional complication is that there are 4 types of surveys, where
each survey type includes only some of the total number of questions.
I am trying to make a separate table for each question type that
contains the response options, such as:
tblQType1
******
SurveyID
QuestionNum
Breakfast
Lunch
Dinner
comments
******
and have a separate list of questions:
tblQuestionList
************
QuestionNum
QuestionText
QType (1-4)
SurveyType1 (y/n)
SurveyType2 (y/n)
SurveyType3 (y/n)
SurveyType4 (y/n)
************
Is there a way to link the QType field in tblQuestionList to a
particular table, for example to tblQType1? The goal being to make a
form that looks something like the survey. Or maybe there is just a
better way of doing things altogether?
The only other thing I can think of is make each response possible for
each question and simply don't fill out the irrelevent ones.
i.e.
tblQuestionList
***************
QuestionNum
....
SurveyType4
Breakfast
Lunch
Dinner
Generic [ for the single sub-part questions]
Red Sox
NY Yankees
Mariners
St. Louis Cardinals
Comments
****************
This could work in my case, but it seems like it would quickly become
cumbersome for anything more complicated.
Sorry for the long post and thanks,
Katherine