Hello,
First let me thank the folks on this forum. It's been an invaluable resource for me learning Microsoft Access, though until now I've been strictly lurking.
I would like to represent a 3-page survey as a form (probably using a Tab Control) in Access 2007. The form should look as close to the paper survey as possible; its audience is a data-entry team that will enter results from a mailed paper survey. I've borrowed some ideas from an older http://www.tek-tips.com/viewthread.cfm?qid=1447289]thread on survey table organization[/url] to put together this schema.
First, the survey, respondents, and junction table for many-to-many mapping:
Next, how the questions on a particular survey are represented:
Some advice, if you please, on what techniques to use to create a form that represents a page on the survey. For example:
For example, "Text for Question 1" could be a static textbox whose content is tblQuestion.QuestionText for QuestionID 47, say. And its corresponding [Answer for Question One] could be a textbox bound to create a new record in tblAnswer. Perhaps then, some VB to populate the newly-created Answer's ID into tblQuestion.AnswerID for QuestionID 47, once an answer for this question is entered and validated.
Then "Text for Question 2" could be a static textbox whose content is tblQuestion.QuestionText for QuestionID 158, for example; and [Answer for Question Two] could similarly be a textbox bound to create another new record in tblAnswer, whose newly-created AnswerID gets passed into tblQuestion.AnswerID, this time for QuestionID 158.
And so forth. But that's just my guesswork on how to approach this form. It might be all wrong.
I am at a loss on how to approach this form design, paralyzed by possibilities and lack of Access hindsight! Suggestions? Some other details:
* It is ok to hard-code an association between QuestionIDs (47, 158, etc) into the form controls if necessary. Remember that the forms are already printed; they are a done deal.
* Probably 20-30 questions per Tab Control.
* I have simplified in my example above. There are actually checkboxes to represent answers, the schema is a little more complex, and so forth.
* A Datasheet view into Questions won't work because one requirement is for the form to look like the actual survey, with checkboxes, graphics, lines, formatting, etc.
Thanks very much!
-Jeff
First let me thank the folks on this forum. It's been an invaluable resource for me learning Microsoft Access, though until now I've been strictly lurking.
I would like to represent a 3-page survey as a form (probably using a Tab Control) in Access 2007. The form should look as close to the paper survey as possible; its audience is a data-entry team that will enter results from a mailed paper survey. I've borrowed some ideas from an older http://www.tek-tips.com/viewthread.cfm?qid=1447289]thread on survey table organization[/url] to put together this schema.
First, the survey, respondents, and junction table for many-to-many mapping:
Code:
tblSurvey:
SurveyID (pk)
SurveyName
tblRespondent:
RespondentID (pk)
FirstName
LastName
tblSurveyedRespondents (junction table)
RespondentID (fk to tblRespondent)
SurveyID (fk to tblSurvey)
Next, how the questions on a particular survey are represented:
Code:
tblQuestion
QuestionID (pk)
QuestionText
SurveyID (fk to tblSurvey)
AnswerID (fk to tblAnswer)
tblAnswer
AnswerID (pk)
AnswerText
Some advice, if you please, on what techniques to use to create a form that represents a page on the survey. For example:
Code:
Form Header
- Shows current survey (tblSurvey.SurveyName)
- Shows current respondent (tblRespondent.LastName)
Form Detail
- Text for Question 1: [Answer for Question one goes here]
- Text for Question 2: [Answer for Question two goes here]
<etc>
Form Footer
- Not used
For example, "Text for Question 1" could be a static textbox whose content is tblQuestion.QuestionText for QuestionID 47, say. And its corresponding [Answer for Question One] could be a textbox bound to create a new record in tblAnswer. Perhaps then, some VB to populate the newly-created Answer's ID into tblQuestion.AnswerID for QuestionID 47, once an answer for this question is entered and validated.
Then "Text for Question 2" could be a static textbox whose content is tblQuestion.QuestionText for QuestionID 158, for example; and [Answer for Question Two] could similarly be a textbox bound to create another new record in tblAnswer, whose newly-created AnswerID gets passed into tblQuestion.AnswerID, this time for QuestionID 158.
And so forth. But that's just my guesswork on how to approach this form. It might be all wrong.
I am at a loss on how to approach this form design, paralyzed by possibilities and lack of Access hindsight! Suggestions? Some other details:
* It is ok to hard-code an association between QuestionIDs (47, 158, etc) into the form controls if necessary. Remember that the forms are already printed; they are a done deal.
* Probably 20-30 questions per Tab Control.
* I have simplified in my example above. There are actually checkboxes to represent answers, the schema is a little more complex, and so forth.
* A Datasheet view into Questions won't work because one requirement is for the form to look like the actual survey, with checkboxes, graphics, lines, formatting, etc.
Thanks very much!
-Jeff