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)
???
how to make the individual questionnaire forms appear N time
-
Bayomie
- Posts: 3
- Joined: February 20th, 2014, 2:54 am
-
p-air
Re: how to make the individual questionnaire forms appear N
Hello Bayomie,
You can use this piece of logic that seems to work.
This goes in the first question in the roster
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.
I hope that this answers your question.
Bon week-end.
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;
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;
Bon week-end.
-
Bayomie
- Posts: 3
- Joined: February 20th, 2014, 2:54 am
Re: how to make the individual questionnaire forms appear N
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
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
You do not have the required permissions to view the files attached to this post.
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: how to make the individual questionnaire forms appear N
Dear Bayomie
Please see attached data entry program with two levels.
Regards.
a.
Please see attached data entry program with two levels.
Regards.
a.
You do not have the required permissions to view the files attached to this post.
-
Bayomie
- Posts: 3
- Joined: February 20th, 2014, 2:54 am
Re: how to make the individual questionnaire forms appear N
Dear khurshid
thank you for your reply it is useful i'm testing to apply it to my questionnaire
thanks
thank you for your reply it is useful i'm testing to apply it to my questionnaire
thanks