OrWolf
MIS
- Mar 19, 2001
- 291
I'm creating a survey and want to have the user input via check boxes or radio buttons. Since the number of answers vary, I was going to use an array to create the options. Below is the portion of the code applicable to what I want to use. However I'm completely stumped on how to populate the form options. Any suggestions on the syntx would be greatly appreciated.
aSQL="SELECT RA_SurveyAnswers.AnswerID, RA_SurveyAnswers.PossibleAnswer " & _
"FROM RA_SurveyAnswers WHERE (((RA_SurveyAnswers.RAS_ID)=" & iRASID & ")"
Set rs2 = objConnection.Execute(aSQL)
arrAnswerID = Array(rs2("AnswerID")
arrAnswer = Array(rs2("PossibleAnswer")
aSQL="SELECT RA_SurveyAnswers.AnswerID, RA_SurveyAnswers.PossibleAnswer " & _
"FROM RA_SurveyAnswers WHERE (((RA_SurveyAnswers.RAS_ID)=" & iRASID & ")"
Set rs2 = objConnection.Execute(aSQL)
arrAnswerID = Array(rs2("AnswerID")
arrAnswer = Array(rs2("PossibleAnswer")