I have a subform called "ProjectPAAFSubform", within a form called "Project"
ProjectPAAFSubform is in continuous form mode and comproses a list of questions. Depending on how the user answers these questions, new questions are appended to the recordset.
Say the user is halfway down the list and answers a question which yields a new question. My problem is that, after DoCmd.Requery and Refresh commands to make the new question visible in the form, the form is then reset to the top of the list, so the user is viewing the first question again. This is likely to cause the user to input the wrong data in the wrong question.
I have tried to use
DoCmd.GoToRecord acDataForm, "ProjectPAAFsubform", acGoTo, 4
where "4" is the record number of question, to take the user back to his/her starting point, but I get the error
"The object ProjectPAAFsubform is not open"
even though clearly it is.
Any ideas?
Thanks.
ProjectPAAFSubform is in continuous form mode and comproses a list of questions. Depending on how the user answers these questions, new questions are appended to the recordset.
Say the user is halfway down the list and answers a question which yields a new question. My problem is that, after DoCmd.Requery and Refresh commands to make the new question visible in the form, the form is then reset to the top of the list, so the user is viewing the first question again. This is likely to cause the user to input the wrong data in the wrong question.
I have tried to use
DoCmd.GoToRecord acDataForm, "ProjectPAAFsubform", acGoTo, 4
where "4" is the record number of question, to take the user back to his/her starting point, but I get the error
"The object ProjectPAAFsubform is not open"
even though clearly it is.
Any ideas?
Thanks.