Page 1 of 1
how to make the individual questionnaire forms appear N time
Posted: February 20th, 2014, 3:00 am
by Bayomie
i'm new to CSPro i need help on
How to make the individual questionnaire forms appear N times after the Household Questionnaire form where N = Eligible family members (determined in HH questionnaire)
???
Re: how to make the individual questionnaire forms appear N
Posted: February 22nd, 2014, 7:57 am
by p-air
Hello Bayomie,
You can use this piece of logic that seems to work.
This goes in the first question in the roster
Code: Select all
proc FIRST_QUESTION
//the first question in the roster
preproc
if curocc() >= n then // n is the total number of persons in the household
i = 0;
do until i in 1:2
i = accept ("Would you like to enter more people?", "NO", "YES");
enddo;
if i in 1 then
endgroup;
endif;
endif;
skip to next;
But it is better to put the code in the last question in the person record so that you don't have an extra line with no information.
Code: Select all
proc LAST_QUESTION
postproc
if curocc() >= n then // n is the total number of persons in the household
i = 0;
do until i in 1:2
i = accept ("Would you like to enter more people?", "NO", "YES");
enddo;
if i in 1 then
endgroup;
endif;
endif;
skip to next;
I hope that this answers your question.
Bon week-end.
Re: how to make the individual questionnaire forms appear N
Posted: February 23rd, 2014, 3:04 am
by Bayomie
Thank you P-air
this is a useful peace of information for the roster, but my question is about multi level questionnaire
level one is the house hold questionnaire (there is a variable with N where n is the number of eligible family member for the individual questionnaire
- level two Individual questionnaire it repeats N times for each house hold
the relation between level one HH and level two Individual is One to many.
my problem is how to force level two (IND questionnaire ) to appear N times after each level one HH questionnaire
hope this explain my problem better
Re: how to make the individual questionnaire forms appear N
Posted: February 23rd, 2014, 4:44 am
by khurshid.arshad
Dear Bayomie
Please see attached data entry program with two levels.
Regards.
a.
Re: how to make the individual questionnaire forms appear N
Posted: February 27th, 2014, 2:57 am
by Bayomie
Dear khurshid
thank you for your reply it is useful i'm testing to apply it to my questionnaire
thanks