Ben McCall
Registered User.
- Local time
- Today, 04:18
- Joined
- Jun 20, 2001
- Messages
- 22
I have a database in access 97.
I have a questionnaire form whose table is “question” which has three fields – “question_id”, “question_no”, and “question”.
One subform has a table “answers” which has four fields – “answer_id”, “answer_no” , “question_no and “answer”. The answers are multiple choice and one answer is selected for each question by clicking on the appropriate field in the subform (there are a maximum of four answers per question.)
The second subform has a table “patientsanswers” which has four fields – “patient –id”, “question_no”, answer_no”, and “answer”. This form is used for the answer to questions that are not multiple choice but require a numerical or text answer. This is also the table that stores all of the answers – both multiple choice and text.
I have no trouble with answering the questions and their going to the proper field in the “patientanswers” table but when I use a command button on the parent form to go to the previous record using “DoCmd.GoToRecord, , acPrevious” I am returned to the proper answer field but the content is that of the previous set of question’s answer i.e. I get the answer for “patient_id” “1” when patient_id” “2” is the current responder. Also the answer for “patient_id” “1” is changed to the current responders “patient_id” number. I know this is complicated but I wondered whether any one had a solution to the problem.
It is possible that I need to look this field up using the “patient_id” field but I have not been able to accomplish this to date.
Any help would be appreciated. If you need more information please ask.
Thanks!
Ben McCall
[This message has been edited by Ben McCall (edited 07-28-2001).]
I have a questionnaire form whose table is “question” which has three fields – “question_id”, “question_no”, and “question”.
One subform has a table “answers” which has four fields – “answer_id”, “answer_no” , “question_no and “answer”. The answers are multiple choice and one answer is selected for each question by clicking on the appropriate field in the subform (there are a maximum of four answers per question.)
The second subform has a table “patientsanswers” which has four fields – “patient –id”, “question_no”, answer_no”, and “answer”. This form is used for the answer to questions that are not multiple choice but require a numerical or text answer. This is also the table that stores all of the answers – both multiple choice and text.
I have no trouble with answering the questions and their going to the proper field in the “patientanswers” table but when I use a command button on the parent form to go to the previous record using “DoCmd.GoToRecord, , acPrevious” I am returned to the proper answer field but the content is that of the previous set of question’s answer i.e. I get the answer for “patient_id” “1” when patient_id” “2” is the current responder. Also the answer for “patient_id” “1” is changed to the current responders “patient_id” number. I know this is complicated but I wondered whether any one had a solution to the problem.
It is possible that I need to look this field up using the “patient_id” field but I have not been able to accomplish this to date.
Any help would be appreciated. If you need more information please ask.
Thanks!
Ben McCall
[This message has been edited by Ben McCall (edited 07-28-2001).]