Question : Access Table structure...

Hello,

My first Access project. I have a series of questions and answers (2 options for each answer). I was hoping to get some feedback on the table structure. I was thinking about creating 2 tables.

Table 1 like so...

Table: Questions
with row values 'ID' and 'Question'

Table 2 like so...

Table: Answers
with 'ID', 'QuestionID', 'Answer'

Then I want to have a form that I can input the data into the tables... Each time the form is submitted the Answers (10 answers) table will contain the data for all 10 answers and build 10 rows of data for every form entry... Does this sound logical or is there any other suggestions? With having the QuestionID I figure I can run reports by having relational tables and a pie chart for showing the data report.

Thanks,

Brian

Answer : Access Table structure...

This part looks good.  You have a one to many relationship between Question and Answer.

If you need different questions for different forms, you might need something like:
Form
---------
ID
Name

FormQuestion
------------------
ID
Form_ID
QuestionNumber
QuestionText

QuestionAnswer
------------------------
ID
Question_ID
AnswerText
...and possibly (if you need to know it)
WhoAnswered
WhenAnswered

What you have looks good, and you can expand on it as your requirements dictate.

Best Regards
-Greg
Random Solutions  
 
programming4us programming4us